1

idk what i changed

This commit is contained in:
Ventilaar 2021-01-13 12:02:59 +01:00
parent c3c2564418
commit 37d5ec1155
3 changed files with 15 additions and 3 deletions

5
run.py
View File

@ -51,9 +51,12 @@ def root():
@app.route('/fulltable')
def fulltable():
max_rows_per_page = 500
max_rows_per_page = request.args.get('r', 100, int)
page = request.args.get('p', 1, int)
if max_rows_per_page == -1:
max_rows_per_page = 100
entries = []
if request.args.get('reverse') == 'True':

View File

@ -1,6 +1,6 @@
<html>
<head>
<title>Index</title>
<title>Volledig tabel</title>
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
</head>
<body>
@ -30,6 +30,15 @@
{% endfor %}
</tbody>
</table>
<form>
<label>Maximaal aantal rijen</label>
<select name="r">
<option value="-1">Max</option>
<option value="100">100</option>
<option value="500">500</option>
</select>
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>

View File

@ -5,7 +5,7 @@
<a class="nav-link" href="/">Home {{ path }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/fulltable">Volledige tabel</a>
<a class="nav-link" href="/fulltable">Volledig tabel</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/statistics">Statistieken</a>