Rename solds to balances.
This commit is contained in:
parent
16684a4938
commit
545de91d46
@ -41,8 +41,11 @@ class Account(db.Model):
|
||||
)
|
||||
|
||||
def solds(self):
|
||||
"""Return the solds of this account."""
|
||||
# TODO Alexis Lahouze 2017-05-04 Rename to "balances"
|
||||
"""Return the balances of this account."""
|
||||
return self.balances()
|
||||
|
||||
def balances(self):
|
||||
"""Return the balances of this account."""
|
||||
return db.session.query(
|
||||
db.func.sum(Operation.value).label("future"),
|
||||
db.func.sum(
|
||||
|
Loading…
Reference in New Issue
Block a user