Fix index page when there is no events

This commit is contained in:
2015-02-14 12:19:51 +01:00
parent 8d728a01fc
commit a1d2243d17
+1 -1
View File
@@ -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)\