mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 22:15:48 +08:00
upgrade_serve:r Fix filesend needs to send filename without path
This commit is contained in:
parent
b89ded2ea3
commit
4906566d6e
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ def get_file(
|
||||||
build_type=file.build_type.value,
|
build_type=file.build_type.value,
|
||||||
audience=file.audience.value,
|
audience=file.audience.value,
|
||||||
sha256sum=sha256,
|
sha256sum=sha256,
|
||||||
filename=archive_path,
|
filename=os.path.basename(archive_path),
|
||||||
file_length=length,
|
file_length=length,
|
||||||
)
|
)
|
||||||
return file_send
|
return file_send
|
||||||
|
|
Loading…
Add table
Reference in a new issue