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:
2020-12-08 12:59:26 +05:30
parent 1f21438a4c
commit ccf2f704b6
13 changed files with 31 additions and 12 deletions

View File

@ -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: