From: Denis Kasak Date: Tue, 26 May 2015 16:32:48 +0000 (+0200) Subject: Prevent hook from triggering nested task generation. X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/65ea130f69f997ff3f91c2f5f5f515f15c4c62c0?hp=-c Prevent hook from triggering nested task generation. --- 65ea130f69f997ff3f91c2f5f5f515f15c4c62c0 diff --git a/pirate_add_shift_recurrence.py b/pirate_add_shift_recurrence.py index e3c4848..42d0cc0 100644 --- a/pirate_add_shift_recurrence.py +++ b/pirate_add_shift_recurrence.py @@ -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.config.update(dict(recurrence="no")) def hook_shift_recurrence(task): if is_new_local_recurrence_child_task(task):