Compare commits

..

No commits in common. "b85d316491b331de8de5b0bee77d998a498c78e5" and "5886ded19a83ca96fc0e84c5cd4beb3d894b4fbe" have entirely different histories.

4 changed files with 3 additions and 9 deletions

Binary file not shown.

View File

@ -26,7 +26,7 @@ python3 main.py
On Windows:
```bash
python3 main.py
python main.py
```

View File

@ -1237,14 +1237,8 @@ def report():
return redirect("/login")
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

View File

@ -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">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>&nbsp;Generate Report</a>
</div>
<h1 class="text-center">{{message}}</h1>
<div class="row">