Fix scheduled operations query.

This commit is contained in:
Alexis Lahouze 2015-06-17 00:45:22 +02:00
parent ebeb57b15d
commit 87276d2762

View File

@ -56,14 +56,12 @@ class ScheduledOperation(db.Model):
query = session.query(
cls
).select_from(
session.query(cls)
.filter(cls.account_id == account_id)
.order_by(
).filter(
cls.account_id == account_id
).order_by(
desc(cls.day),
cls.value,
cls.label,
).subquery()
)
return query