From bec578f790f5603145b98624f1105402e43f93d3 Mon Sep 17 00:00:00 2001 From: Diego Garcia Gangl Date: Sat, 16 Jul 2022 19:28:35 -0300 Subject: [PATCH] Make someday dates sort lower fixes #859 --- GTG/core/dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GTG/core/dates.py b/GTG/core/dates.py index 80e8789bd2..68b81cfcd2 100644 --- a/GTG/core/dates.py +++ b/GTG/core/dates.py @@ -199,7 +199,7 @@ def dt_by_accuracy(self, wanted_accuracy: Accuracy): return self.dt_value if self.accuracy is Accuracy.fuzzy: now = datetime.now() - delta_days = {SOON: 15, SOMEDAY: 365, NODATE: 9999} + delta_days = {SOON: 15, SOMEDAY: 9999, NODATE: 9999} gtg_date = Date(now + timedelta(delta_days[self.dt_value])) if gtg_date.accuracy is wanted_accuracy: return gtg_date.dt_value