Browse Source

Fix index page when there is no events

master
tr4ck3ur des JM2L 9 years ago
parent
commit
a1d2243d17
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      jm2l/views.py

+ 1
- 1
jm2l/views.py View File

@@ -165,7 +165,7 @@ def JSON_TimeLine_Request(request):
.filter(Event.for_year == year)\ .filter(Event.for_year == year)\
.filter(Event.event_type != None)\ .filter(Event.event_type != None)\
.group_by(func.strftime('%d', Event.start_time)).all() .group_by(func.strftime('%d', Event.start_time)).all()
ListEv = []
for Day in Days: for Day in Days:
Events = DBSession.query(Event)\ Events = DBSession.query(Event)\
.filter(Event.for_year == year)\ .filter(Event.for_year == year)\


Loading…
Cancel
Save