fix: do not consider Completed as touched

This commit is contained in:
Johann Dreo 2023-09-01 11:59:29 +02:00
commit 2ca825a0e4
5 changed files with 20 additions and 2 deletions

View file

@ -118,7 +118,7 @@ class StackSorter:
self.reverse = reverse
def __call__(self, tasks):
raise NotImplementedError
raise NotImplementedError
class Sectioner(Widget):
@ -523,6 +523,9 @@ def get_data(taskfile, filter = None):
def parse_touched(out):
if "Completed task" in out:
# For some reason, regexp below matches "Completed" as well.
return []
return re.findall("(?:Modifying|Created|Starting|Stopping)+ task ([0-9]+)", out)