Quick and dirty test for an alternative end-of-day time when checking a daily recurring task.

master
Hoffelhas 2020-05-28 21:51:20 +02:00
parent f9fddf934e
commit 011e100173
1 changed files with 7 additions and 0 deletions

View File

@ -281,10 +281,17 @@ def main():
# Save the new date # Save the new date
item['old_date'] = item['due']['date'] item['old_date'] = item['due']['date']
api.items.update(item['id']) api.items.update(item['id'])
#item.update(due={'date': '2020-05-27', 'is_recurring': True, 'string': 'every day'})
# Mark children for action # Mark children for action
for child_item in child_items_all: for child_item in child_items_all:
child_item['r_tag'] = 1 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: except Exception as e:
# If date has never been saved before, create a new entry # If date has never been saved before, create a new entry
logging.debug( logging.debug(