tasklib icon indicating copy to clipboard operation
tasklib copied to clipboard

Cannot set UDA values using TaskWarrior() instances

Open lyndhurst opened this issue 1 year ago • 0 comments

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'

lyndhurst avatar Oct 16 '23 13:10 lyndhurst