summaryrefslogtreecommitdiffstats
path: root/app/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.py')
-rw-r--r--app/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py
index 180715e..0ca0d2a 100644
--- a/app/main.py
+++ b/app/main.py
@@ -36,7 +36,7 @@ def upload(study, course = None):
# dynamically fill form values
courses = set(current_app.config['STUDIES'][study] +
get_studies()[study].get_courses())
- choices = [(k,k) for k in sorted(courses, key=unicode.lower)]
+ choices = [(k,k) for k in sorted(courses, key=str.casefold)]
form.course.choices = choices
if 'new' not in dict(form.course.choices):
form.course.choices.append(('', u'---'))