Sort revisions to be expired more nicely
All checks were successful
docker-image / docker (push) Successful in 3m21s
All checks were successful
docker-image / docker (push) Successful in 3m21s
This commit is contained in:
parent
5458f21624
commit
7eb261a945
|
@ -112,7 +112,7 @@ def revisions_to_be_expired(cutoff: datetime) -> list[any]:
|
|||
WHERE "Revisions"."createdAt" < $1
|
||||
AND "Revisions"."noteId" = "Notes"."id"
|
||||
AND "Notes"."ownerId" = "Users"."id"
|
||||
ORDER BY "Notes"."createdAt"
|
||||
ORDER BY "Notes"."createdAt", "Revisions"."createdAt"
|
||||
''') as revs_older_than:
|
||||
for row in revs_older_than(cutoff):
|
||||
revisions.append({
|
||||
|
|
Loading…
Reference in a new issue