From e7d84b9704529eaabdf315d686b3067181b86453 Mon Sep 17 00:00:00 2001 From: Cristiano Ferreira Date: Tue, 16 Jul 2024 23:38:35 +0100 Subject: [PATCH] Fix paragraph match bug. --- helper/constants.py | 2 +- helper/exercises.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/constants.py b/helper/constants.py index 67df516..72d123b 100644 --- a/helper/constants.py +++ b/helper/constants.py @@ -40,7 +40,7 @@ SPEAKING_MIN_TIMER_DEFAULT = 14 BLACKLISTED_WORDS = ["jesus", "sex", "gay", "lesbian", "homosexual", "god", "angel", "pornography", "beer", "wine", "cocaine", "alcohol", "nudity", "lgbt", "casino", "gambling", "catholicism", - "discrimination", "politics", "politic", "christianity", "islam", "christian", "christians", + "discrimination", "politic", "christianity", "islam", "christian", "christians", "jews", "jew", "discrimination", "discriminatory"] EN_US_VOICES = [ diff --git a/helper/exercises.py b/helper/exercises.py index 776c0cb..3ae72b0 100644 --- a/helper/exercises.py +++ b/helper/exercises.py @@ -725,7 +725,7 @@ def gen_paragraph_match_exercise(text: str, quantity: int, start_id): options = [] for i, paragraph in enumerate(paragraphs, start=0): - paragraph["heading"] = headings[i] + paragraph["heading"] = headings[i]["heading"] options.append({ "id": paragraph["letter"], "sentence": paragraph["paragraph"]