Tracker: sort Last Activity numerically, instead of text.

This commit is contained in:
Fabian Dill
2021-06-25 21:05:44 +02:00
parent f870bb3fad
commit d1fd1cd788
2 changed files with 23 additions and 2 deletions

View File

@@ -98,7 +98,7 @@
<th colspan="{{ colspan }}" class="center-column">{{ area }}</th>
{%- endif -%}
{%- endfor -%}
<th rowspan="2" class="center-column">Last<br>Activity</th>
<th rowspan="2" class="center-column hours">Last<br>Activity</th>
</tr>
<tr>
{% for area in ordered_areas %}
@@ -141,7 +141,7 @@
{%- endif -%}
{%- endfor -%}
{%- if activity_timers[(team, player)] -%}
<td class="center-column">{{ activity_timers[(team, player)] | render_timedelta }}</td>
<td class="center-column">{{ activity_timers[(team, player)].total_seconds() }}</td>
{%- else -%}
<td class="center-column">None</td>
{%- endif -%}