Fix subquery.

This commit is contained in:
Alexis Lahouze 2017-07-07 17:38:35 +02:00
parent a0a8aee818
commit 26e7d578c7

View File

@ -195,7 +195,7 @@ class Account(db.Model):
)
if end:
query = query.filter(query.c.operation_date <= str(end))
query = query.filter(base_query.c.operation_date <= str(end))
elif end:
query = query.filter(Operation.operation_date <= str(end))