From 65ea130f69f997ff3f91c2f5f5f515f15c4c62c0 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Tue, 26 May 2015 18:32:48 +0200 Subject: [PATCH] Prevent hook from triggering nested task generation. --- pirate_add_shift_recurrence.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.39.5