Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions taskw/warrior.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,9 @@ def task_update(self, task):
if 'annotations' in task_to_modify:
del task_to_modify['annotations']

if task_to_modify.get('urgency') == 0:
del task_to_modify['urgency']

modification = taskw.utils.encode_task_experimental(task_to_modify)
# Only try to modify the task if there are changes to post here
# (changes *might* just be in annotations).
Expand Down