fix top 20

This commit is contained in:
lelo 2025-04-01 04:27:59 +00:00
parent 76eca80a4a
commit 49311a0f91
2 changed files with 2 additions and 3 deletions

View File

@ -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(

View File

@ -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>