From 21f1860d598a2df4a5b97c624a18abc4ed9e1675 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 6 Jan 2022 18:02:00 +0100 Subject: Update to Python3 --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/main.py') 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'---')) -- cgit v1.2.3-1-g7c22