From a9bcbe2471a30df596a931063e30bd5f878a7886 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Wed, 17 Feb 2016 15:47:28 -0500 Subject: [PATCH 1/1] Get task by ['parent']['uuid'] --- pirate_add_shift_recurrence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pirate_add_shift_recurrence.py b/pirate_add_shift_recurrence.py index 6ff13a5..0266fc5 100644 --- a/pirate_add_shift_recurrence.py +++ b/pirate_add_shift_recurrence.py @@ -22,7 +22,7 @@ tw.overrides.update(dict(recurrence="no", hooks="no")) def hook_shift_recurrence(task): if is_new_local_recurrence_child_task(task): - parent = tw.tasks.get(uuid=task['parent']) + parent = tw.tasks.get(uuid=task['parent']['uuid']) parent_due_shift = task['due'] - parent['due'] for attr in time_attributes: if parent[attr]: -- 2.39.5