From 678ef4b6c0534205cee3fa7e174544e1758f9b0c Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 5 Feb 2024 11:11:44 +0000 Subject: [PATCH] Did the same thing elsewhere --- helper/exercises.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helper/exercises.py b/helper/exercises.py index 2108d11..14fe762 100644 --- a/helper/exercises.py +++ b/helper/exercises.py @@ -143,10 +143,12 @@ def build_write_blanks_text_form(form: [], start_id): def build_write_blanks_solutions(questions: [], start_id): solutions = [] for i, q in enumerate(questions, start=start_id): + solution = [q["possible_answers"]] if isinstance(q["possible_answers"], str) else q["possible_answers"] + solutions.append( { "id": str(i), - "solution": q["possible_answers"] + "solution": solution } ) return solutions