Skip to content
Snippets Groups Projects
Commit 631a6ac5 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed small bug in chapter import handler

parent 91ed667b
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ from server import *
@job_handler('probe', 'probe-raw')
def import_xmp_chapters(jobid, jobtype, data, state, status):
if 'lecture_id' not in data and data.get('import-chapters', False):
if 'lecture_id' not in data or not data.get('import-chapters', False):
return
times = set()
# Only add new chapters, deleted chapters are taken into account here
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment