ralphbean / taskw

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

Don't pass urgency:0 to taskwarrior 2.5.2 for task modify #142

Open EdwardBetts opened 3 years ago

EdwardBetts commented 3 years ago

When modifying a task in taskwarrior 2.5.2 it was returning this error:

The 'urgency' attribute does not allow a value of '0'.

The solution is to drop the urgency argument if the value is 0 when calling task modify.

coddingtonbear commented 3 years ago

For what it's worth, I'm fairly sure the urgency field is calculated anyway (and thus immutable) -- we should probably never be sending that in our command.

bergercookie commented 3 years ago

Yeah, I recently stumbled upon the same issue, explicitly removing the urgency key does the job. 👍🏿