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