From 8b83a4163d3bf9e5c035689d4a53f0c9b49e4bc5 Mon Sep 17 00:00:00 2001 From: Cristiano Ferreira Date: Mon, 18 Mar 2024 21:34:25 +0000 Subject: [PATCH] Remove multiple choice questions from reading. --- helper/constants.py | 2 +- helper/exercises.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/helper/constants.py b/helper/constants.py index 2692aef..975a5b6 100644 --- a/helper/constants.py +++ b/helper/constants.py @@ -16,7 +16,7 @@ GRADING_FIELDS = ['comment', 'overall', 'task_response'] GEN_FIELDS = ['topic'] GEN_TEXT_FIELDS = ['title'] LISTENING_GEN_FIELDS = ['transcript', 'exercise'] -READING_EXERCISE_TYPES = ['multipleChoice', 'fillBlanks', 'writeBlanks', 'trueFalse'] +READING_EXERCISE_TYPES = ['fillBlanks', 'writeBlanks', 'trueFalse'] LISTENING_EXERCISE_TYPES = ['multipleChoice', 'writeBlanksQuestions', 'writeBlanksFill', 'writeBlanksForm'] TOTAL_READING_PASSAGE_1_EXERCISES = 13 diff --git a/helper/exercises.py b/helper/exercises.py index 63f8c24..f09a19a 100644 --- a/helper/exercises.py +++ b/helper/exercises.py @@ -297,11 +297,7 @@ def generate_reading_exercises(passage: str, req_exercises: list, number_of_exer for req_exercise in req_exercises: number_of_exercises = number_of_exercises_q.get() - if req_exercise == "multipleChoice": - question = gen_multiple_choice_exercise(passage, number_of_exercises, start_id, difficulty) - exercises.append(question) - print("Added multiple choice: " + str(question)) - elif req_exercise == "fillBlanks": + if req_exercise == "fillBlanks": question = gen_summary_fill_blanks_exercise(passage, number_of_exercises, start_id, difficulty) exercises.append(question) print("Added fill blanks: " + str(question))