Fix: Post voucher was not working. Replace command had borked the url.
Fix: Attendace report file name contained single quotes and did not open in excel
This commit is contained in:
@ -41,7 +41,7 @@ def get_report(
|
||||
output,
|
||||
db,
|
||||
)
|
||||
headers = {"Content-Disposition": "attachment; filename = 'attendance-record.csv'"}
|
||||
headers = {"Content-Disposition": "attachment; filename = attendance-record.csv"}
|
||||
output.seek(0)
|
||||
return StreamingResponse(output, media_type="text/csv", headers=headers)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user