app.py edited online with Bitbucket
This commit is contained in:
2
app.py
2
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:
|
||||
|
||||
Reference in New Issue
Block a user