Skip to content

Commit

Permalink
Fixed error in add_untouched_tag that was throwing a ValueError excep…
Browse files Browse the repository at this point in the history
…tion at line 114, if new_time < today. New GTG.core.dates.Date does not define < operand with a datetime.datetime object, but it is defined with a datetime.date.
  • Loading branch information
APCBoston authored and diegogangl committed Oct 15, 2022
1 parent f4d2fc8 commit 5a9c906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/plugins/untouched_tasks/untouchedTasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def add_untouched_tag(self, action=None, param=None):
tag_name = self.preferences['default_tag']

log.debug("Starting process for adding %s", tag_name)
today = datetime.datetime.now()
today = datetime.date.today()
max_days = self.preferences["max_days"]
requester = self.plugin_api.get_requester()
closed_tree = requester.get_tasks_tree(name='inactive')
Expand Down

0 comments on commit 5a9c906

Please sign in to comment.