From 011e100173c2224ec9b7dc19b81fd60b08d8de51 Mon Sep 17 00:00:00 2001 From: Hoffelhas Date: Thu, 28 May 2020 21:51:20 +0200 Subject: [PATCH] Quick and dirty test for an alternative end-of-day time when checking a daily recurring task. --- autodoist.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/autodoist.py b/autodoist.py index 30cd456..4c0b02f 100644 --- a/autodoist.py +++ b/autodoist.py @@ -281,10 +281,17 @@ def main(): # Save the new date item['old_date'] = item['due']['date'] api.items.update(item['id']) + #item.update(due={'date': '2020-05-27', 'is_recurring': True, 'string': 'every day'}) # Mark children for action for child_item in child_items_all: child_item['r_tag'] = 1 + + # Check the custom end-of-day time + if item['content'] == 'Rtest': + item.update(due={'date': '2020-05-28', 'is_recurring': True, 'string': 'every day'}) + api.commit() + except Exception as e: # If date has never been saved before, create a new entry logging.debug(