Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
33200935
Commit
33200935
authored
Apr 23, 2017
by
Andreas Valder
Browse files
bugfix for case insensitive mariadb
parent
f13df766
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
33200935
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment