diff --git a/app.py b/app.py index b0896eb..6c17910 100644 --- a/app.py +++ b/app.py @@ -168,7 +168,7 @@ def save_listening(): text_to_speech(part["text"], sound_file_path) file_url = upload_file_firebase_get_url(FIREBASE_BUCKET, firebase_file_path, sound_file_path) template["parts"][i]["audio"]["source"] = file_url - template["parts"][i]["exercises"].append(part["exercises"]) + template["parts"][i]["exercises"] = part["exercises"] if save_to_db("listening", template): return template else: