diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2015-11-01 16:10:19 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2015-11-01 16:10:19 +0100 |
commit | a6489752e2151aab72ce814a3a5652dbdfe22b1a (patch) | |
tree | 704d8e7f759a58ad48260255a9a1f553666ee539 /app/views/consts.py | |
parent | 737c8182c33d3fd710724bf71453f008526b9937 (diff) | |
download | kosten-a6489752e2151aab72ce814a3a5652dbdfe22b1a.tar.gz kosten-a6489752e2151aab72ce814a3a5652dbdfe22b1a.tar.bz2 kosten-a6489752e2151aab72ce814a3a5652dbdfe22b1a.zip |
Fix
Diffstat (limited to '')
-rw-r--r-- | app/views/consts.py | 6 |
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>') |