]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Get task by ['parent']['uuid']
authorZach Smith <subsetpark@gmail.com>
Wed, 17 Feb 2016 20:47:28 +0000 (15:47 -0500)
committerZach Smith <subsetpark@gmail.com>
Wed, 17 Feb 2016 20:47:28 +0000 (15:47 -0500)
pirate_add_shift_recurrence.py

index 6ff13a5105e3ea51d7ac80eb9c2b5e4d7607c25d..0266fc592b0435381e8c4ee538a294f86331befd 100644 (file)
@@ -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]: