idk what i changed
This commit is contained in:
parent
c3c2564418
commit
37d5ec1155
5
run.py
5
run.py
@ -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':
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user