From: Zach Smith Date: Wed, 17 Feb 2016 20:47:28 +0000 (-0500) Subject: Get task by ['parent']['uuid'] X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/a9bcbe2471a30df596a931063e30bd5f878a7886?hp=d97dd4a8f4c0581ce33ed5838dcc0329745041bf Get task by ['parent']['uuid'] --- 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]: