Compare commits
2 Commits
5886ded19a
...
b85d316491
Author | SHA1 | Date | |
---|---|---|---|
b85d316491 | |||
43c5b5c3ba |
Binary file not shown.
@ -26,7 +26,7 @@ python3 main.py
|
||||
|
||||
On Windows:
|
||||
```bash
|
||||
python main.py
|
||||
python3 main.py
|
||||
```
|
||||
|
||||
|
||||
|
8
main.py
8
main.py
@ -1237,8 +1237,14 @@ def report():
|
||||
return redirect("/login")
|
||||
|
||||
account = account_module.check_account(request.cookies.get("account"))
|
||||
csv = '\n'.join(account_module.generateReport(account))
|
||||
# Create a download
|
||||
|
||||
return jsonify(account_module.generateReport(account))
|
||||
response = make_response(csv)
|
||||
response.headers["Content-Disposition"] = "attachment; filename=report.csv"
|
||||
response.headers["Content-Type"] = "text/csv"
|
||||
return response
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
||||
</nav>
|
||||
<div class="container-fluid">
|
||||
<div class="d-sm-flex justify-content-between align-items-center mb-4">
|
||||
<h3 class="text-dark mb-0">Dashboard</h3><a class="btn btn-primary btn-sm d-none d-sm-inline-block" role="button" href="/report"><i class="fas fa-download fa-sm text-white-50"></i> Generate Report</a>
|
||||
<h3 class="text-dark mb-0">Bids</h3>
|
||||
</div>
|
||||
<h1 class="text-center">{{message}}</h1>
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user