Fix multi-account bank reconciliation and output filename
This commit is contained in:
@@ -133,7 +133,7 @@ def download(job_id: str, request: Request):
|
||||
view = job_view(job)
|
||||
if not view["download_ready"]:
|
||||
return not_found_response(request, "Analysis workbook is not ready or has expired.")
|
||||
return FileResponse(path=job.output_file, filename="Bank_Statement_Analysis.xlsx", media_type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
||||
return FileResponse(path=job.output_file, filename=Path(job.output_file).name, media_type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user