Rename solds to balances.
This commit is contained in:
parent
16684a4938
commit
545de91d46
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user