From a6489752e2151aab72ce814a3a5652dbdfe22b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 1 Nov 2015 16:10:19 +0100 Subject: Fix --- app/views/consts.py | 6 +++--- 1 file 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('/') -- cgit v1.2.3