From 869e74f384ac65ec15bfc4d424bd4294154a03e4 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Wed, 29 Nov 2023 14:21:11 +0000 Subject: [PATCH] app.py edited online with Bitbucket --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: