From 3a25e05aa3cd266076b0418d9f1983acd172e053 Mon Sep 17 00:00:00 2001 From: Hoffelhas Date: Mon, 20 Sep 2021 13:26:47 +0200 Subject: [PATCH] Initial check of 'T0 task date has changed' still included the time, hence check always failed. Now [:10] has been added to exclude a time during the check --- autodoist.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autodoist.py b/autodoist.py index 0e92e00..a387416 100644 --- a/autodoist.py +++ b/autodoist.py @@ -453,7 +453,7 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg if item['due']['is_recurring']: try: # Check if the T0 task date has changed - if item['due']['date'] != item['date_old']: + if item['due']['date'][:10] != item['date_old']: # Mark children for action based on mode if args.regeneration is not None: @@ -490,9 +490,6 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg t = datetime.today() current_hour = t.hour - if item['content'] == 'b': - print('stop') - # Check if current time is before our end-of-day if (args.end - current_hour) > 0: