From 6878e0a276ce7a8e942e79c329162f1950fef0d0 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 30 Jul 2024 22:34:31 +0100 Subject: [PATCH] Added the ability to send the ID for the listening --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 3b66c51..92b1219 100644 --- a/app.py +++ b/app.py @@ -180,7 +180,7 @@ def save_listening(): difficulty = data.get('difficulty', random.choice(difficulties)) template = getListeningTemplate() template['difficulty'] = difficulty - id = str(uuid.uuid4()) + id = data.get('id', str(uuid.uuid4())) for i, part in enumerate(parts, start=0): part_template = getListeningPartTemplate()