Added the ability to send the ID for the listening
This commit is contained in:
2
app.py
2
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user