The taskwarrior extension script `on-modify.timewarrior` did not forward
modifications for description/tag/project to `timew`.
This resulted in non-existent tasks (with old tag etc) contiued to be
tracked and not updated
[Closes#105](https://github.com/GothenburgBitFactory/timewarrior/issues/105)
- add main
- move algorithm to function
- use __future__ module
- introduce new style formatting
- restructure test_totals.t accordingly
- add test for empty range
- add tests for colored output
- Convert UTC time to local time in output
- Change single quote to double quote
- Use new style python formatting
- Make tests use current time
- Fix test for open interval
I got the following error when I tried to run totals.py while a task was not finished:
Traceback (most recent call last):
File "/home/davis/.timewarrior/extensions/totals.py", line 101, in <module>
end = datetime.datetime.strptime(configuration['temp.report.end'], DATEFORMAT)
KeyError: 'temp.report.end'
This change fixed that for me.
- Improve totals.py extension script:
- Fix display issue if tags are shorter than string 'Totals'
- Fix issue when totals.py is called on empty database
- Add tests: test_totals.t
- This first draft hook script uses the task UUID, description, project and tags
as Timewarrior tags, and responds to 'task <id> start' and 'task <id> stop'
commands, as well as other changes that have the same effect.