home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt tests to new cache emptying reality.
[plomtask]
/
plomtask
/
todos.py
diff --git
a/plomtask/todos.py
b/plomtask/todos.py
index 4d7e393bc49191db242235c1f11092bafce450ed..f5388b58f25ec1237b65b751c8fd5fa352160ddf 100644
(file)
--- a/
plomtask/todos.py
+++ b/
plomtask/todos.py
@@
-51,6
+51,10
@@
class Todo(BaseModel[int], ConditionsRelations):
days_to_update: Set[str] = set()
children: list[Todo]
parents: list[Todo]
days_to_update: Set[str] = set()
children: list[Todo]
parents: list[Todo]
+ sorters = {'doneness': lambda t: t.is_done,
+ 'title': lambda t: t.title_then,
+ 'comment': lambda t: t.comment,
+ 'date': lambda t: t.date}
# pylint: disable=too-many-arguments
def __init__(self, id_: int | None,
# pylint: disable=too-many-arguments
def __init__(self, id_: int | None,