summaryrefslogtreecommitdiffstats
path: root/app/forms.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2022-01-06 18:02:00 +0100
committerAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2022-01-06 18:10:31 +0100
commit21f1860d598a2df4a5b97c624a18abc4ed9e1675 (patch)
tree52c6604ec41167f10f368abafe8f8c3d32b00b41 /app/forms.py
parente6c88107426c589157f61292d67bacc76320fb7b (diff)
downloadklausuren-21f1860d598a2df4a5b97c624a18abc4ed9e1675.tar.gz
klausuren-21f1860d598a2df4a5b97c624a18abc4ed9e1675.tar.bz2
klausuren-21f1860d598a2df4a5b97c624a18abc4ed9e1675.zip
Update to Python3
Diffstat (limited to 'app/forms.py')
-rw-r--r--app/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/forms.py b/app/forms.py
index 2870fca..94e9947 100644
--- a/app/forms.py
+++ b/app/forms.py
@@ -8,7 +8,7 @@ from wtforms.validators import ValidationError
year_start = date.today().year
year_end = current_app.config['FORM_START_YEAR']-1
-choices = [(str(x),x) for x in xrange(year_start, year_end, -1)]
+choices = [(str(x),x) for x in range(year_start, year_end, -1)]
class UploadForm(Form):
""" Upload Form class for validation """
study = TextField('Studiengang')