diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-05 01:22:27 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-05 01:22:27 +0200 |
commit | a573cd0dfea5d39598c5900bd958b3b7873a107e (patch) | |
tree | 550984296002e8fe6cbfb31c30b94df4e3cc5cb9 | |
parent | 1256bf046fc60e6d71bc8985864ae5e040a26dd0 (diff) | |
download | kosten-a573cd0dfea5d39598c5900bd958b3b7873a107e.tar.gz kosten-a573cd0dfea5d39598c5900bd958b3b7873a107e.tar.bz2 kosten-a573cd0dfea5d39598c5900bd958b3b7873a107e.zip |
Coerce strings to ints
Diffstat (limited to '')
-rw-r--r-- | controller.py | 3 |
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) |