TI-32: taskwarrior hook script doesn't stop recording waiting task

- Thanks to Yury Videneev.
This commit is contained in:
Paul Beckingham 2017-03-19 11:13:32 -04:00 committed by Thomas Lauf
parent 75be890476
commit 4c7fec1525

View file

@ -63,10 +63,7 @@ if 'start' in new and not 'start' in old:
elif not 'start' in new and 'start' in old: elif not 'start' in new and 'start' in old:
os.system('timew stop ' + combined.decode() + ' :yes') os.system('timew stop ' + combined.decode() + ' :yes')
# TI-51 - in the taskwarrior hook, deleting a task doesn't stop the watch # Any task that is active, with a non-pending status should not be tracked.
#
# Broadened to: Any task that is active, with a non-pending status should not
# be tracked.
elif 'start' in new and new['status'] != 'pending': elif 'start' in new and new['status'] != 'pending':
os.system('timew stop ' + combined.decode() + ' :yes') os.system('timew stop ' + combined.decode() + ' :yes')