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')
|
@app.route('/fulltable')
|
||||||
def 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)
|
page = request.args.get('p', 1, int)
|
||||||
|
|
||||||
|
if max_rows_per_page == -1:
|
||||||
|
max_rows_per_page = 100
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
|
|
||||||
if request.args.get('reverse') == 'True':
|
if request.args.get('reverse') == 'True':
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Index</title>
|
<title>Volledig tabel</title>
|
||||||
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -30,6 +30,15 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<a class="nav-link" href="/">Home {{ path }}</a>
|
<a class="nav-link" href="/">Home {{ path }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/fulltable">Volledige tabel</a>
|
<a class="nav-link" href="/fulltable">Volledig tabel</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/statistics">Statistieken</a>
|
<a class="nav-link" href="/statistics">Statistieken</a>
|
||||||
|
Reference in New Issue
Block a user