Fix scheduled operations query.
This commit is contained in:
parent
ebeb57b15d
commit
87276d2762
@ -56,14 +56,12 @@ class ScheduledOperation(db.Model):
|
|||||||
|
|
||||||
query = session.query(
|
query = session.query(
|
||||||
cls
|
cls
|
||||||
).select_from(
|
).filter(
|
||||||
session.query(cls)
|
cls.account_id == account_id
|
||||||
.filter(cls.account_id == account_id)
|
).order_by(
|
||||||
.order_by(
|
desc(cls.day),
|
||||||
desc(cls.day),
|
cls.value,
|
||||||
cls.value,
|
cls.label,
|
||||||
cls.label,
|
|
||||||
).subquery()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return query
|
return query
|
||||||
|
Loading…
Reference in New Issue
Block a user