Updated the Listening template to allow for a dynamic amount of parts

This commit is contained in:
Tiago Ribeiro
2024-01-23 11:09:55 +00:00
parent 6c03e3590c
commit a577eed013
2 changed files with 16 additions and 32 deletions

View File

@@ -2,39 +2,18 @@ import uuid
from helper.constants import *
def getListeningPartTemplate():
return {
"audio": {
"repeatableTimes": 3,
"source": "",
},
"exercises": []
}
def getListeningTemplate():
return {
"parts": [
{
"audio": {
"repeatableTimes": 3,
"source": "",
},
"exercises": []
},
{
"audio": {
"repeatableTimes": 3,
"source": "",
},
"exercises": []
},
{
"audio": {
"repeatableTimes": 3,
"source": "",
},
"exercises": []
},
{
"audio": {
"repeatableTimes": 3,
"source": "",
},
"exercises": []
},
],
"parts": [],
"isDiagnostic": False,
"minTimer": LISTENING_MIN_TIMER_DEFAULT,
"module": "listening"