This is the correction script for the interval flattening bug (TI-102). The script exports all intervals stored, purges the database, and re-enters the intervals.
TimeWarrior 1.1.1 or higher correctly enters intervals.
Use this script when you have used
This script will export your stored intervals, purge your database and re-enter your data such that exclusions will be applied and properly written to the database.
!!! YOU ARE STRONGLY ADVISED TO BACKUP YOUR TIMEWARRIOR DATABASE BEFORE PROCEEDING !!!
After making a backup copy of your timewarror data by making a copy of all the
~/.timewarrior/data, run this:
$ curl -O https://taskwarrior.org/download/timew-dbcorrection.py $ python timew-dbcorrection.py ...
The script may run for a few minutes, depending on your machine and your database complexity. It shows a progress bar. Do not kill the script or you will need to restore from your backup.