Rename balance to flow.

This commit is contained in:
Alexis Lahouze 2017-05-07 22:37:45 +02:00
parent 545de91d46
commit 911a5925b7

View File

@ -67,8 +67,11 @@ class Account(db.Model):
).one()
def balance(self, begin, end):
"""Return the balance for a specific time period."""
# TODO Alexis Lahouze 2017-05-04 Rename to "flow" or "cash flow"
"""Return the flow for a specific time period."""
return self.flow(begin, end)
def flow(self, begin, end):
"""Return the flow for a specific time period."""
query = db.session.query(
db.func.sum(
db.case(