Commit 53ee1c77 authored by Andreas Valder's avatar Andreas Valder

fix some linter errors

parent efdac5b6
...@@ -7,7 +7,7 @@ linter: ...@@ -7,7 +7,7 @@ linter:
- python3 -V - python3 -V
- uname -a - 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 - 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: artifacts:
paths: paths:
- pylint.txt - pylint.txt
......
...@@ -31,8 +31,8 @@ def suggest_chapter(lectureid): ...@@ -31,8 +31,8 @@ def suggest_chapter(lectureid):
if 'ref' in request.values: 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') 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 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 submitter = None
if not ismod(): if not ismod():
submitter = request.environ['REMOTE_ADDR'] submitter = request.environ['REMOTE_ADDR']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment