diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c0a0896eb2b7acd5b6c8e78e12019c0b689c767..56de3316b29fe4667881145890e87e132eec19b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/chapters.py b/chapters.py index 211e78b19266c26c215979e99ee77e9cf23e010f..acd60ea8735e0610933eefc15760c60b1c1182f9 100644 --- a/chapters.py +++ b/chapters.py @@ -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']