Commit 631a6ac5 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed small bug in chapter import handler

parent 91ed667b
......@@ -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):
times = set()
# Only add new chapters, deleted chapters are taken into account here
Supports Markdown
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