From d97dd4a8f4c0581ce33ed5838dcc0329745041bf Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 12 Sep 2015 10:54:51 +0200 Subject: [PATCH 1/1] Fix old style import and config overrides --- pirate_add_shift_recurrence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pirate_add_shift_recurrence.py b/pirate_add_shift_recurrence.py index 7eb5c77..6ff13a5 100644 --- a/pirate_add_shift_recurrence.py +++ b/pirate_add_shift_recurrence.py @@ -2,7 +2,7 @@ import sys import os -from tasklib.task import TaskWarrior +from tasklib import TaskWarrior time_attributes = ('wait', 'scheduled') @@ -18,7 +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")) +tw.overrides.update(dict(recurrence="no", hooks="no")) def hook_shift_recurrence(task): if is_new_local_recurrence_child_task(task): -- 2.39.5