mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
Fix for task delete
- `task delete` does add 'end' to modified JSON but not remove key 'start' - Stop time tracking when task is deleted Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
2504493de6
commit
38ddeec03c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ if 'start' in new and 'start' not in old:
|
||||||
start_or_stop = 'start'
|
start_or_stop = 'start'
|
||||||
|
|
||||||
# Stopped task.
|
# Stopped task.
|
||||||
elif 'start' not in new and 'start' in old:
|
elif ('start' not in new or 'end' in new) and 'start' in old:
|
||||||
start_or_stop = 'stop'
|
start_or_stop = 'stop'
|
||||||
|
|
||||||
if start_or_stop:
|
if start_or_stop:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue