Fix paragraph match bug.

This commit is contained in:
Cristiano Ferreira
2024-07-16 23:38:35 +01:00
parent b4dc6be927
commit e7d84b9704
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ SPEAKING_MIN_TIMER_DEFAULT = 14
BLACKLISTED_WORDS = ["jesus", "sex", "gay", "lesbian", "homosexual", "god", "angel", "pornography", "beer", "wine", BLACKLISTED_WORDS = ["jesus", "sex", "gay", "lesbian", "homosexual", "god", "angel", "pornography", "beer", "wine",
"cocaine", "alcohol", "nudity", "lgbt", "casino", "gambling", "catholicism", "cocaine", "alcohol", "nudity", "lgbt", "casino", "gambling", "catholicism",
"discrimination", "politics", "politic", "christianity", "islam", "christian", "christians", "discrimination", "politic", "christianity", "islam", "christian", "christians",
"jews", "jew", "discrimination", "discriminatory"] "jews", "jew", "discrimination", "discriminatory"]
EN_US_VOICES = [ EN_US_VOICES = [

View File

@@ -725,7 +725,7 @@ def gen_paragraph_match_exercise(text: str, quantity: int, start_id):
options = [] options = []
for i, paragraph in enumerate(paragraphs, start=0): for i, paragraph in enumerate(paragraphs, start=0):
paragraph["heading"] = headings[i] paragraph["heading"] = headings[i]["heading"]
options.append({ options.append({
"id": paragraph["letter"], "id": paragraph["letter"],
"sentence": paragraph["paragraph"] "sentence": paragraph["paragraph"]