summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2015-11-01 16:10:19 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2015-11-01 16:10:19 +0100
commita6489752e2151aab72ce814a3a5652dbdfe22b1a (patch)
tree704d8e7f759a58ad48260255a9a1f553666ee539
parent737c8182c33d3fd710724bf71453f008526b9937 (diff)
downloadkosten-a6489752e2151aab72ce814a3a5652dbdfe22b1a.tar.gz
kosten-a6489752e2151aab72ce814a3a5652dbdfe22b1a.tar.bz2
kosten-a6489752e2151aab72ce814a3a5652dbdfe22b1a.zip
Fix
Diffstat (limited to '')
-rw-r--r--app/views/consts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/consts.py b/app/views/consts.py
index 31cf565..9ffd757 100644
--- a/app/views/consts.py
+++ b/app/views/consts.py
@@ -88,15 +88,15 @@ def list ():
if e.end >= d:
current.append(e)
else:
- if (d.month == 1 and e.month == 12 and e.year == d.year - 1) \
- or (e.year == d.year and e.month == d.month - 1):
+ if (d.month == 1 and e.end.month == 12 and e.end.year == d.year - 1) \
+ or (e.end.year == d.year and e.end.month == d.month - 1):
last_month.append(e)
else:
old.append(e)
else:
future.append(e)
- return { 'current': current, 'old': old, 'future': future }
+ return { 'current': current, 'old': old, 'future': future, 'last_month': last_month }
@mod.route('/<int:id>')