diff options
author | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-14 12:19:51 +0100 |
---|---|---|
committer | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-14 12:19:51 +0100 |
commit | a1d2243d1707d6e780b9aca5cbaf00028ee536a8 (patch) | |
tree | 8bd247f15f630e404da7463dece20c1864cf7305 | |
parent | 8d728a01fc4e39707ece333481736e0f09e01c41 (diff) | |
download | jm2l-a1d2243d1707d6e780b9aca5cbaf00028ee536a8.tar.gz jm2l-a1d2243d1707d6e780b9aca5cbaf00028ee536a8.tar.bz2 jm2l-a1d2243d1707d6e780b9aca5cbaf00028ee536a8.tar.xz jm2l-a1d2243d1707d6e780b9aca5cbaf00028ee536a8.zip |
Fix index page when there is no events
-rw-r--r-- | jm2l/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jm2l/views.py b/jm2l/views.py index e90184e..6a94e6d 100644 --- a/jm2l/views.py +++ b/jm2l/views.py @@ -165,7 +165,7 @@ def JSON_TimeLine_Request(request): .filter(Event.for_year == year)\ .filter(Event.event_type != None)\ .group_by(func.strftime('%d', Event.start_time)).all() - + ListEv = [] for Day in Days: Events = DBSession.query(Event)\ .filter(Event.for_year == year)\ |