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

fix some linter errors

parent eac90506
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=140 --output-format=text *.py | tee pylint.txt
- pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=160 --output-format=text *.py | tee pylint.txt
artifacts:
paths:
- pylint.txt
......
......@@ -22,7 +22,7 @@ def import_xmp_chapters(jobid, jobtype, data, state, status):
def suggest_chapter(lectureid):
time = request.values['time']
text = request.values['text']
assert(time and text)
assert time and text
try:
x = datetime.strptime(time, '%H:%M:%S')
time = timedelta(hours=x.hour, minutes=x.minute, seconds=x.second).total_seconds()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment