From 545de91d46ec7908fcabe4252edd5ed928970315 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 7 May 2017 22:37:31 +0200 Subject: [PATCH] Rename solds to balances. --- accountant/models/accounts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/accountant/models/accounts.py b/accountant/models/accounts.py index 027eab0..bc9aca2 100644 --- a/accountant/models/accounts.py +++ b/accountant/models/accounts.py @@ -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(