mirror of https://github.com/Hoffelhas/autodoist
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
parent
7857a397fc
commit
3a25e05aa3
|
@ -453,7 +453,7 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg
|
||||||
if item['due']['is_recurring']:
|
if item['due']['is_recurring']:
|
||||||
try:
|
try:
|
||||||
# Check if the T0 task date has changed
|
# 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
|
# Mark children for action based on mode
|
||||||
if args.regeneration is not None:
|
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()
|
t = datetime.today()
|
||||||
current_hour = t.hour
|
current_hour = t.hour
|
||||||
|
|
||||||
if item['content'] == 'b':
|
|
||||||
print('stop')
|
|
||||||
|
|
||||||
# Check if current time is before our end-of-day
|
# Check if current time is before our end-of-day
|
||||||
if (args.end - current_hour) > 0:
|
if (args.end - current_hour) > 0:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue