home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f682d99
)
Ensure BaseModel.all() returns sorted results.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 1 Aug 2024 15:11:53 +0000
(17:11 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 1 Aug 2024 15:11:53 +0000
(17:11 +0200)
plomtask/db.py
patch
|
blob
|
history
diff --git
a/plomtask/db.py
b/plomtask/db.py
index 67a7fc766ce607095520e174c944f957667011d7..dc61f1a3c01d32595f4701a86295cff9d7a046fb 100644
(file)
--- a/
plomtask/db.py
+++ b/
plomtask/db.py
@@
-477,7
+477,7
@@
class BaseModel(Generic[BaseModelId]):
item = cls.by_id(db_conn, id_)
assert item.id_ is not None
items[item.id_] = item
- return
list(items.values(
))
+ return
sorted(list(items.values()
))
@classmethod
def by_date_range_with_limits(cls: type[BaseModelInstance],