diff --git a/chapters.py b/chapters.py index 5c8333e37e5c27dbae180aca7825005347717020..a0d35b2ea50b6974ec4e6187a89450b1b045a296 100644 --- a/chapters.py +++ b/chapters.py @@ -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