summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-05 01:22:27 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-05 01:22:27 +0200
commita573cd0dfea5d39598c5900bd958b3b7873a107e (patch)
tree550984296002e8fe6cbfb31c30b94df4e3cc5cb9 /controller.py
parent1256bf046fc60e6d71bc8985864ae5e040a26dd0 (diff)
downloadkosten-a573cd0dfea5d39598c5900bd958b3b7873a107e.tar.gz
kosten-a573cd0dfea5d39598c5900bd958b3b7873a107e.tar.bz2
kosten-a573cd0dfea5d39598c5900bd958b3b7873a107e.zip
Coerce strings to ints
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/controller.py b/controller.py
index 73f0fc8..f9bd27c 100644
--- a/controller.py
+++ b/controller.py
@@ -26,6 +26,9 @@ class Show:
def calc(self, year, month):
+ year = int(year)
+ month = int(month)
+
ssum = sql.functions.sum(SingleExpense.expense)
csum = sql.functions.sum(ConstExpense.monthly)