summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-02-13 12:55:19 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-02-13 12:55:19 +0100
commit70f087a4f31da35776d803b0190a1b29caf21441 (patch)
tree4d35fd9967da082e3998b4b603c1ccc5c60e2839 /controller.py
parent458b4e7a1135df8859e94b10e316d3f8c5c5a561 (diff)
downloadkosten-70f087a4f31da35776d803b0190a1b29caf21441.tar.gz
kosten-70f087a4f31da35776d803b0190a1b29caf21441.tar.bz2
kosten-70f087a4f31da35776d803b0190a1b29caf21441.zip
Also print 'future' const expenses
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/controller.py b/controller.py
index 66039ac..0ba696e 100644
--- a/controller.py
+++ b/controller.py
@@ -150,6 +150,7 @@ class Const:
current = []
old = []
+ future = []
for e in expenses:
if e.start <= d:
@@ -157,8 +158,10 @@ class Const:
current.append(e)
else:
old.append(e)
+ else:
+ future.append(e)
- return render("constlist", current = current, old = old)
+ return render("constlist", current = current, old = old, future = future)
else:
exp = ConstExpense.get(id)