Commit 33200935 authored by Andreas Valder's avatar Andreas Valder
Browse files

bugfix for case insensitive mariadb

parent f13df766
......@@ -359,7 +359,7 @@ def index():
@app.route('/courses')
@register_navbar('Videos', icon='film')
def courses():
courses = query('SELECT * FROM courses WHERE (? OR (visible AND listed)) ORDER BY semester, title COLLATE NOCASE', ismod())
courses = query('SELECT * FROM courses WHERE (? OR (visible AND listed)) ORDER BY lower(semester), lower(title)', ismod())
for course in courses:
if course['semester'] == '':
course['semester'] = 'zeitlos'
......
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