From fcf2993de0795bb67f3f0d13808608c9b385f9ab Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 5 Feb 2024 11:08:40 +0000 Subject: [PATCH] Solved a problem with the generation of listening --- helper/exercises.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helper/exercises.py b/helper/exercises.py index bdf952e..2108d11 100644 --- a/helper/exercises.py +++ b/helper/exercises.py @@ -155,10 +155,12 @@ def build_write_blanks_solutions(questions: [], start_id): def build_write_blanks_solutions_listening(words: [], start_id): solutions = [] for i, word in enumerate(words, start=start_id): + solution = [word] if isinstance(word, str) else word + solutions.append( { "id": str(i), - "solution": word + "solution": solution } ) return solutions