disabled sorting on home page
This commit is contained in:
parent
f06cb41607
commit
eaa2c70fc7
4
run.py
4
run.py
@ -37,9 +37,9 @@ with open('steam.json') as file:
|
||||
def root():
|
||||
entries = []
|
||||
|
||||
data_lst = list(data_tpl)
|
||||
data_lst = sorting.nest_qsort(data_tpl, 16, True)
|
||||
|
||||
for x in range(0, 99):
|
||||
for x in range(0, 15):
|
||||
entries.append(data_lst[x])
|
||||
|
||||
return render_template('index.html', first_entry=data_tpl[0], sizedb=len(data_tpl), entries=entries)
|
||||
|
@ -25,7 +25,7 @@
|
||||
<td>{{ row[1] }}</td>
|
||||
<td>{{ row[16] }} gebruikers</td>
|
||||
<td>{{ row[2] }}</td>
|
||||
<td>{{ row[17] }} ,-</td>
|
||||
<td>€ {{ row[17] }} ,-</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -31,15 +31,15 @@
|
||||
|
||||
<div class="col col-lg">
|
||||
<hr>
|
||||
<h2 class="text-center">Populairste games</h2>
|
||||
<h2 class="text-center">Meest gekochte games</h2>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><a href="/">App ID</a></th>
|
||||
<th><a href="?sortby=name{% if reverse %}&reverse=True{% endif %}">Name</a></th>
|
||||
<th><a href="?sortby=users{% if reverse %}&reverse=True{% endif %}">Users</a></th>
|
||||
<th><a href="?sortby=release_date{% if reverse %}&reverse=True{% endif %}">Release date</a></th>
|
||||
<th><a href="?sortby=price{% if reverse %}&reverse=True{% endif %}">Price</a></th>
|
||||
<th>App ID</th>
|
||||
<th>Name</th>
|
||||
<th>Users</th>
|
||||
<th>Release date</th>
|
||||
<th>Price</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -49,7 +49,7 @@
|
||||
<td>{{ row[1] }}</td>
|
||||
<td>{{ row[16] }}</td>
|
||||
<td>{{ row[2] }}</td>
|
||||
<td>{{ row[17] }} ,-</td>
|
||||
<td>€ {{ row[17] }} ,-</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user