Fix multi-account bank reconciliation and output filename

This commit is contained in:
A R R R Associates
2026-07-20 22:17:25 +05:30
parent 7cf330b213
commit 0e931411d6
3 changed files with 90 additions and 8 deletions
+1 -1
View File
@@ -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()