]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commitdiff
Do not return empty string for future times
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 20 Aug 2020 11:08:36 +0000 (13:08 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 20 Aug 2020 11:08:36 +0000 (13:08 +0200)
app.py

diff --git a/app.py b/app.py
index 81bfbf137fca78e3c344a9b4092aa2c64e5a7d6b..9c6f6d168b0c0cacd3fe5562b19253c96c21e5de 100644 (file)
--- a/app.py
+++ b/app.py
@@ -41,7 +41,7 @@ def humanize_ts(time):
     day_diff = diff.days
 
     if day_diff < 0:
-        return ''
+        return 'in the future'
 
     if day_diff == 0:
         if second_diff < 10: