From d0b074e0fe3a7f3b72f146daa370949377d813fc Mon Sep 17 00:00:00 2001 From: Gwyndolyn Marchant Date: Wed, 16 Jun 2021 23:02:27 -0400 Subject: [PATCH] fix for shifted end-of-day --- autodoist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autodoist.py b/autodoist.py index 1ef674f..b31b528 100644 --- a/autodoist.py +++ b/autodoist.py @@ -453,10 +453,6 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg # Check if the T0 task date has changed if item['due']['date'] != item['date_old']: - # Save the new date for reference us - item.update( - date_old=item['due']['date']) - # Mark children for action based on mode if args.regeneration is not None: @@ -529,6 +525,10 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg item.update(due=item_due) # item.update(due={'date': '2020-05-29', 'is_recurring': True, 'string': 'every day'}) + # Save the new date for reference us + item.update( + date_old=item['due']['date']) + except: # If date has never been saved before, create a new entry logging.debug(