diff options
author | Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> | 2022-01-06 18:02:00 +0100 |
---|---|---|
committer | Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> | 2022-01-06 18:10:31 +0100 |
commit | 21f1860d598a2df4a5b97c624a18abc4ed9e1675 (patch) | |
tree | 52c6604ec41167f10f368abafe8f8c3d32b00b41 /app/main.py | |
parent | e6c88107426c589157f61292d67bacc76320fb7b (diff) | |
download | klausuren-21f1860d598a2df4a5b97c624a18abc4ed9e1675.tar.gz klausuren-21f1860d598a2df4a5b97c624a18abc4ed9e1675.tar.bz2 klausuren-21f1860d598a2df4a5b97c624a18abc4ed9e1675.zip |
Update to Python3
Diffstat (limited to 'app/main.py')
-rw-r--r-- | app/main.py | 2 |
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'---')) |