Skip to content
Snippets Groups Projects
Unverified Commit 53ee1c77 authored by Andreas Valder's avatar Andreas Valder
Browse files

fix some linter errors

parent efdac5b6
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ linter:
- python3 -V
- uname -a
- apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage pylint3
- pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=160 --output-format=text *.py | tee pylint.txt
- pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=160 --docstring-min-length=9999 --output-format=text *.py | tee pylint.txt
artifacts:
paths:
- pylint.txt
......
......@@ -31,8 +31,8 @@ def suggest_chapter(lectureid):
if 'ref' in request.values:
flash('Falsches Zeitformat, "%H:%M:%S" wird erwartet. Z.B. "01:39:42" für eine Kapitel bei Stunde 1, Minute 39, Sekunde 42')
return redirect(request.values['ref'])
return 'Wrong time format, "%H:%M:%S" is expected', 400
return 'Wrong time format, "%H:%M:%S" is expected', 400
submitter = None
if not ismod():
submitter = request.environ['REMOTE_ADDR']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment