Add torrent statistics

This commit is contained in:
sqozz
2018-04-01 18:14:22 +02:00
parent 51c9a55968
commit 0e417ee30a
3 changed files with 102 additions and 18 deletions

View File

@ -19,9 +19,9 @@ vim: ts=2 noexpandtab
<tr>
<td><a href="/details?h={{ result[0] }}">{{ result[1] }}</a></td>
<td>{{ result[2] }}</td>
<td>{{ _("N/A") }}</td>
<td>{{ _("N/A") }}</td>
<td>{{ _("N/A") }}</td>
<td>{{ stats.get(result[0], {}).get("complete", _("N/A")) }}</td>
<td>{{ stats.get(result[0], {}).get("seeds", _("N/A")) }}</td>
<td>{{ stats.get(result[0], {}).get("peers", _("N/A")) }}</td>
</tr>
{% endfor %}
</table>