Rename solds to balances.

This commit is contained in:
Alexis Lahouze 2017-05-07 22:37:31 +02:00
parent 16684a4938
commit 545de91d46

View File

@ -41,8 +41,11 @@ class Account(db.Model):
) )
def solds(self): def solds(self):
"""Return the solds of this account.""" """Return the balances of this account."""
# TODO Alexis Lahouze 2017-05-04 Rename to "balances" return self.balances()
def balances(self):
"""Return the balances of this account."""
return db.session.query( return db.session.query(
db.func.sum(Operation.value).label("future"), db.func.sum(Operation.value).label("future"),
db.func.sum( db.func.sum(