From e4daeb2078f2c5c9c485dbd236ed36e721fcd5db Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 19 Mar 2017 11:13:32 -0400 Subject: [PATCH] TI-32: taskwarrior hook script doesn't stop recording waiting task - Thanks to Yury Videneev. --- AUTHORS | 1 + ChangeLog | 2 ++ ext/on-modify.timewarrior | 5 +---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AUTHORS b/AUTHORS index b042af10..62997d7b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -49,3 +49,4 @@ suggestions: Mattia Rizzolo m8r Jan Stolarek + Yury Videneev diff --git a/ChangeLog b/ChangeLog index 3c3f92c0..6a4540a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ (thanks to hosaka). - TI-29 timew config can't add new value (thanks to Yury Vidineev) +- TI-32 taskwarrior hook script doesn't stop recording waiting task + (thanks to Yury Videneev). - TI-39 Bogus command line option causes segfault (thanks to Jan Stolarek, Thomas Lauf). - TI-40 totals.py extension script fails with an error diff --git a/ext/on-modify.timewarrior b/ext/on-modify.timewarrior index a9fb471a..5821c86d 100755 --- a/ext/on-modify.timewarrior +++ b/ext/on-modify.timewarrior @@ -63,10 +63,7 @@ if 'start' in new and not 'start' in old: elif not 'start' in new and 'start' in old: os.system('timew stop ' + combined.decode() + ' :yes') -# TI-51 - in the taskwarrior hook, deleting a task doesn't stop the watch -# -# Broadened to: Any task that is active, with a non-pending status should not -# be tracked. +# Any task that is active, with a non-pending status should not be tracked. elif 'start' in new and new['status'] != 'pending': os.system('timew stop ' + combined.decode() + ' :yes')