fix top 20
This commit is contained in:
parent
76eca80a4a
commit
49311a0f91
@ -316,7 +316,6 @@ def dashboard():
|
||||
location_data = location_data[:20]
|
||||
|
||||
# Convert the top-files rows to a list of dictionaries
|
||||
# (just for consistency in passing to template).
|
||||
rows = [dict(rel_path=r[0], access_count=r[1]) for r in rows]
|
||||
|
||||
return render_template(
|
||||
|
||||
@ -151,8 +151,8 @@
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
<tr>
|
||||
<td>{{ row[0] }}</td>
|
||||
<td>{{ row[1] }}</td>
|
||||
<td>{{ row.rel_path }}</td>
|
||||
<td>{{ row.access_count }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user