fix set --input

This commit is contained in:
Qing 2023-05-07 17:00:28 +08:00
parent 18a2498688
commit a899dd3c08

View File

@ -443,7 +443,7 @@ def set_input_photo():
return send_file( return send_file(
input_image_path, input_image_path,
as_attachment=True, as_attachment=True,
attachment_filename=Path(input_image_path).name, download_name=Path(input_image_path).name,
mimetype=f"image/{get_image_ext(image_in_bytes)}", mimetype=f"image/{get_image_ext(image_in_bytes)}",
) )
else: else: