diff --git a/backend/app/tasks/quiz_tasks.py b/backend/app/tasks/quiz_tasks.py index 63ae57d..2d9002f 100644 --- a/backend/app/tasks/quiz_tasks.py +++ b/backend/app/tasks/quiz_tasks.py @@ -130,6 +130,7 @@ def extract_quiz( chunks = [(s, min(e, q_end)) for s, e in chunks if s <= q_end] if not chunks: chunks = [(section.start_page, q_end)] + n_chunks = len(chunks) # update display count after filtering all_valid_questions = [] all_skipped = []