Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -496,7 +496,7 @@ def download_receipt(transaction_id):
|
|
| 496 |
io.BytesIO(r.content),
|
| 497 |
mimetype='image/jpeg',
|
| 498 |
as_attachment=True,
|
| 499 |
-
|
| 500 |
)
|
| 501 |
except Exception as e:
|
| 502 |
print(f"Download receipt error: {str(e)}")
|
|
|
|
| 496 |
io.BytesIO(r.content),
|
| 497 |
mimetype='image/jpeg',
|
| 498 |
as_attachment=True,
|
| 499 |
+
attachment_file='receipt.jpg'
|
| 500 |
)
|
| 501 |
except Exception as e:
|
| 502 |
print(f"Download receipt error: {str(e)}")
|