Fix paragraph match bug.
This commit is contained in:
@@ -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 = [
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user