From 051dd35f490df8b87506c548600df8fa85e1ab10 Mon Sep 17 00:00:00 2001 From: Gregory Krohne Date: Fri, 16 Sep 2016 15:46:52 -0400 Subject: [PATCH] Add data-sort-value to 'Last seen' column in stats. Force 'none' to 1970-01-01 for sorting purposes. --- templates/stats.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/stats.html b/templates/stats.html index 2053a06f..baf6967a 100644 --- a/templates/stats.html +++ b/templates/stats.html @@ -65,8 +65,14 @@

Pokestats

{{pokemon.pokemon_name}} - - {% if pokemon.lastseen is not none %} + + {% if pokemon.lastseen is not none %} {{ pokemon.lastseen.strftime('%d %b, %H:%M') }} {% else %} never