ralphbean / taskw

python taskwarrior api
http://threebean.org
GNU General Public License v3.0
176 stars 47 forks source link

If "annotations" not passed to task_update, it truncates annotations #162

Open StephanMeijer opened 2 years ago

StephanMeijer commented 2 years ago

If the property is not passed to task_update when doing an update, annotations seem to be truncated.

StephanMeijer commented 2 years ago

When using. TaskWarriorShellout

StephanMeijer commented 2 years ago
image

Likely caused by legacy = True

StephanMeijer commented 2 years ago

Workaround for partial updates:

    id, task_to_update = tw.get_task(uuid=task.uuid)

    _line, task = tw.task_update(task_to_update | task.dict(exclude_unset=True))

    return task