X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/17332e1a73e4e913b2e011119b9b9c2775737215..d97dd4a8f4c0581ce33ed5838dcc0329745041bf:/pirate_add_shift_recurrence.py?ds=sidebyside diff --git a/pirate_add_shift_recurrence.py b/pirate_add_shift_recurrence.py index e3c4848..6ff13a5 100644 --- a/pirate_add_shift_recurrence.py +++ b/pirate_add_shift_recurrence.py @@ -2,9 +2,9 @@ import sys import os -from tasklib.task import TaskWarrior +from tasklib import TaskWarrior -time_attributes = ('wait', 'until', 'scheduled') +time_attributes = ('wait', 'scheduled') def is_new_local_recurrence_child_task(task): # Do not affect tasks not spun by recurrence @@ -18,6 +18,7 @@ def is_new_local_recurrence_child_task(task): return True tw = TaskWarrior(data_location=os.path.dirname(os.path.dirname(sys.argv[0]))) +tw.overrides.update(dict(recurrence="no", hooks="no")) def hook_shift_recurrence(task): if is_new_local_recurrence_child_task(task):