From 437d907a1dccd7e7305078c86cc8d0b003e9c4ad Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 14 Apr 2023 09:48:08 +0200 Subject: [PATCH] time_since filter: Do not show year as relative time --- server/app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/server/app.py b/server/app.py index 6fbca1d..696d9bc 100644 --- a/server/app.py +++ b/server/app.py @@ -328,7 +328,6 @@ TIME_SINCE_FORMAT = { timedelta(days=1): "day", timedelta(days=7): "week", timedelta(days=YEAR_MEAN_LENGTH_DAYS / 12): "month", - timedelta(days=YEAR_MEAN_LENGTH_DAYS): "year", } TIME_SINCE_ORDER = sorted(TIME_SINCE_FORMAT.keys())