aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortr4ck3ur <tr4ck3ur@style-python.fr>2015-02-14 12:19:51 +0100
committertr4ck3ur <tr4ck3ur@style-python.fr>2015-02-14 12:19:51 +0100
commita1d2243d1707d6e780b9aca5cbaf00028ee536a8 (patch)
tree8bd247f15f630e404da7463dece20c1864cf7305
parent8d728a01fc4e39707ece333481736e0f09e01c41 (diff)
downloadjm2l-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.py2
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)\