mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
Add partition download_name
This commit is contained in:
parent
f34ffa205e
commit
7b0566fbff
@ -97,7 +97,10 @@ def partition(album_uuid, partition_uuid):
|
||||
if partition is None:
|
||||
return abort(404)
|
||||
|
||||
return send_file(os.path.join("partitions", f"{partition_uuid}.pdf"))
|
||||
return send_file(
|
||||
os.path.join("partitions", f"{partition_uuid}.pdf"),
|
||||
download_name = f"{partition['name']}.pdf"
|
||||
)
|
||||
|
||||
|
||||
@bp.route("/create-album", methods=["GET", "POST"])
|
||||
|
@ -26,7 +26,10 @@ def partition(uuid):
|
||||
|
||||
if partition is None:
|
||||
abort(404)
|
||||
return send_file(os.path.join("partitions", f"{uuid}.pdf"))
|
||||
return send_file(
|
||||
os.path.join("partitions", f"{uuid}.pdf"),
|
||||
download_name = f"{partition['name']}.pdf"
|
||||
)
|
||||
|
||||
|
||||
@bp.route("/search/<uuid>")
|
||||
|
Loading…
Reference in New Issue
Block a user