mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
TI-16: Should handle case where taskwarrior hook is used before timew
- Thanks to Aaron Curtis.
This commit is contained in:
parent
35530d75e4
commit
8f532d8eb9
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ combined = ' '.join(['"%s"' % tag for tag in tags])
|
|||
|
||||
# Started task.
|
||||
if 'start' in new and not 'start' in old:
|
||||
os.system('timew start ' + combined)
|
||||
os.system('timew start ' + combined + ' :yes')
|
||||
|
||||
# Stopped task.
|
||||
elif not 'start' in new and 'start' in old:
|
||||
os.system('timew stop ' + combined)
|
||||
os.system('timew stop ' + combined + ' :yes')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue