Updated the matchSentences to work correctly

This commit is contained in:
Tiago Ribeiro
2024-03-25 00:46:27 +00:00
parent 373867d520
commit 8ec72ff539

View File

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