summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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>')