Let my HOME alone 1/2
This commit is contained in:
parent
2ae37e902e
commit
a83e45df5e
94 changed files with 328 additions and 58 deletions
21
config/scripts/totask
Executable file
21
config/scripts/totask
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import taskw
|
||||
import sys
|
||||
|
||||
tw = taskw.TaskWarrior()
|
||||
|
||||
total = 0
|
||||
number = 0
|
||||
statuses = set()
|
||||
for task in tw._get_task_objects(*sys.argv[1:], 'export'):
|
||||
statuses.add(task['status'])
|
||||
if task['status'] not in {'pending', 'waiting'}:
|
||||
continue
|
||||
urgency = task['urgency']
|
||||
if urgency <= 0:
|
||||
continue
|
||||
total += urgency
|
||||
number += 1
|
||||
|
||||
print(f"Σ{total:.3f} #{number}")
|
Loading…
Add table
Add a link
Reference in a new issue