Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
53ee1c77
Unverified
Commit
53ee1c77
authored
Aug 02, 2019
by
Andreas Valder
Browse files
fix some linter errors
parent
efdac5b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
53ee1c77
...
@@ -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
...
...
chapters.py
View file @
53ee1c77
...
@@ -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'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment