Skip to content

Commit

Permalink
Make someday dates sort lower
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogangl committed Aug 4, 2022
1 parent 00faf90 commit 2888d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/core/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2888d55

Please sign in to comment.