Compare commits
No commits in common. "b85d316491b331de8de5b0bee77d998a498c78e5" and "5886ded19a83ca96fc0e84c5cd4beb3d894b4fbe" have entirely different histories.
b85d316491
...
5886ded19a
Binary file not shown.
@ -26,7 +26,7 @@ python3 main.py
|
|||||||
|
|
||||||
On Windows:
|
On Windows:
|
||||||
```bash
|
```bash
|
||||||
python3 main.py
|
python main.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
8
main.py
8
main.py
@ -1237,14 +1237,8 @@ def report():
|
|||||||
return redirect("/login")
|
return redirect("/login")
|
||||||
|
|
||||||
account = account_module.check_account(request.cookies.get("account"))
|
account = account_module.check_account(request.cookies.get("account"))
|
||||||
csv = '\n'.join(account_module.generateReport(account))
|
|
||||||
# Create a download
|
|
||||||
|
|
||||||
response = make_response(csv)
|
|
||||||
response.headers["Content-Disposition"] = "attachment; filename=report.csv"
|
|
||||||
response.headers["Content-Type"] = "text/csv"
|
|
||||||
return response
|
|
||||||
|
|
||||||
|
return jsonify(account_module.generateReport(account))
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="d-sm-flex justify-content-between align-items-center mb-4">
|
<div class="d-sm-flex justify-content-between align-items-center mb-4">
|
||||||
<h3 class="text-dark mb-0">Bids</h3>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="text-center">{{message}}</h1>
|
<h1 class="text-center">{{message}}</h1>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user