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