From e999beafd7a229cabb9fd9339dd76d6b5d2a9d5e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jul 2019 14:49:30 +1000 Subject: [PATCH] If we haven't synced in 10 years, it's "never" This is the value that's displayed on startup now --- tuhigui/drawingperspective.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tuhigui/drawingperspective.py b/tuhigui/drawingperspective.py index 9405c20..3093397 100644 --- a/tuhigui/drawingperspective.py +++ b/tuhigui/drawingperspective.py @@ -42,6 +42,8 @@ def relative_time(seconds): return f'{int(seconds/H)} hours ago' if seconds < 4 * WEEK: return f'{int(seconds/DAY)} days ago' + if seconds > 10 * 365 * DAY: + return 'never' return 'a long time ago'