This commit is contained in:
Geoffrey Frogeye 2019-01-06 14:05:05 +01:00
parent 84967eac60
commit 7a7a3b68f4
8 changed files with 65 additions and 10 deletions

View file

@ -535,7 +535,7 @@ class TaskWarriorProvider(StatefulSection, InotifyUpdater):
def fetcher(self):
maxi = -math.inf
total = 0
for task in self.taskw.load_tasks()['pending']:
for task in self.taskw.load_tasks('pending')['pending']:
urgency = task['urgency']
if urgency > maxi:
maxi = urgency