From: Tomas Babej Date: Thu, 18 Feb 2016 18:36:38 +0000 (+0100) Subject: Merge pull request #4 from subsetpark/master X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/d06c7ada569cc7566c28dd48f9438849b2a88f8c?hp=d97dd4a8f4c0581ce33ed5838dcc0329745041bf Merge pull request #4 from subsetpark/master 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]: