Updated the Listening template to allow for a dynamic amount of parts
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user