summaryrefslogtreecommitdiff
path: root/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'model.py')
-rw-r--r--model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/model.py b/model.py
index d37bf62..0d2489a 100644
--- a/model.py
+++ b/model.py
@@ -72,7 +72,7 @@ class ConstExpense (Expense):
next = OneToOne('ConstExpense', inverse = 'prev')
prev = ManyToOne('ConstExpense')
- monthly = ColumnProperty(lambda c: c.expense / c.months, deferred = True)
+ monthly = ColumnProperty(lambda c: sql.cast(c.expense / c.months, T.Numeric(scale = 2)), deferred = True)
start_year = ColumnProperty(lambda c: sql.extract('year', c.start))
start_month = ColumnProperty(lambda c: sql.extract('month', c.start))
21:04:14 +0100'>2017-02-25CopyrightJason A. Donenfeld1-1/+1 2017-02-25StyleJason A. Donenfeld1-2/+2 2017-02-25git: use inner-most directoryJason A. Donenfeld2-27/+48 2017-02-25clip: sleep may require argv[0] to be sleepJason A. Donenfeld1-1/+1 2017-02-25man: document system extensionsJason A. Donenfeld1-2/+3