TI-16: Should handle case where taskwarrior hook is used before timew

- Thanks to Aaron Curtis.
This commit is contained in:
Paul Beckingham 2016-06-28 18:15:42 -04:00 committed by Thomas Lauf
parent 35530d75e4
commit 8f532d8eb9

View file

@ -54,9 +54,9 @@ combined = ' '.join(['"%s"' % tag for tag in tags])
# Started task. # Started task.
if 'start' in new and not 'start' in old: if 'start' in new and not 'start' in old:
os.system('timew start ' + combined) os.system('timew start ' + combined + ' :yes')
# Stopped task. # Stopped task.
elif not 'start' in new and 'start' in old: elif not 'start' in new and 'start' in old:
os.system('timew stop ' + combined) os.system('timew stop ' + combined + ' :yes')