tasklib
tasklib copied to clipboard
Cannot set UDA values using TaskWarrior() instances
Trying to modify the value of a UDA modifies the description instead.
Add a UDA in taskrc
uda.level.type = numeric
Add a task
task add 'Some task' level:1
Try to modify the value from a shell
>>> tw = TaskWarrior()
>>> t = tw.tasks.pending().get(id=1)
>>> t
'Some task'
>>> t["level"]
'1.000000'
>>> t["level"] = 2
>>> t
'Some task'
>>> t["level"]
'1.000000'
>>> t.save()
>>> t
'level: 4.0'
>>> t["level"]
'1.000000'