lazeroffmichael / ticktick-py

Unofficial TickTick API
https://lazeroffmichael.github.io/ticktick-py/
MIT License
212 stars 29 forks source link

Any way to uncheck a task? #17

Open Vermoot opened 2 years ago

Vermoot commented 2 years ago

I'm of course using tt.task.complete(task) to complete a task, but unless I'm missing something there's no way to uncheck a task?

I'm guessing my best course of action is to change the task's status property back to 0 and delete its completedTime, completedUserId and commentCount properties? (Those are the only differences I can see between a completed and an uncompleted task. Is commentCount related at all?)

Thanks!

lazeroffmichael commented 2 years ago

Hi,

I feel like there must be an easier way that TickTick handles this that I haven't found yet. I am going to keep this issue open as being able to uncheck the task through a method would be helpful.