Verified Commit c3725c5a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix showing general meetings in years > lecture year

parent 12daef3f
......@@ -32,7 +32,10 @@ def index(request):
meeting_years = {x: [] for x in range(1990, lectureyear + 1)}
for obj in GeneralMeeting.objects.all():
meeting_year = datetime_to_lectureyear(obj.datetime)
if meeting_year not in meeting_years:
meeting_years[meeting_year] = []
context = {'miscellaneous_documents': MiscellaneousDocument.objects.all(),
'association_documents_years': sorted(years.items(),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment