coddingtonbear / inthe.am

Access your Taskwarrior tasks from any browser anywhere
https://inthe.am/
GNU Affero General Public License v3.0
593 stars 51 forks source link

Clear Task Data not working as expected #397

Closed linnabraham closed 1 year ago

linnabraham commented 2 years ago

All of the tasks data reappear in a short while after the Clear Task Data button is pressed. task sync says successful. No changes

coddingtonbear commented 1 year ago

I'm assuming you're re-synchronizing after pressing the "Clear Task Data" button or you have another client somewhere resynchronizing via a cron task. The code for the clear task data button is here:

https://github.com/coddingtonbear/inthe.am/blob/development/inthe_am/taskmanager/viewsets/user.py#L386

which calls:

https://github.com/coddingtonbear/inthe.am/blob/4b12cc09187a2af526c38a36a03b6dedfe74d8ed/inthe_am/taskmanager/models/taskstore.py#L861

If you can demonstrate a bug there, though, please file a pull request fixing it!