Add endpoints to save questions to db.
This commit is contained in:
@@ -133,7 +133,7 @@ def getReading1Template():
|
||||
"prompt": "Select the appropriate option.",
|
||||
"questions": [
|
||||
{
|
||||
"id": 1,
|
||||
"id": "1",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -157,7 +157,7 @@ def getReading1Template():
|
||||
"variant": "text",
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"id": "2",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -181,7 +181,7 @@ def getReading1Template():
|
||||
"variant": "text",
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"id": "3",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -284,7 +284,7 @@ def getReading2Template():
|
||||
"prompt": "Select the appropriate option.",
|
||||
"questions": [
|
||||
{
|
||||
"id": 1,
|
||||
"id": "1",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -308,7 +308,7 @@ def getReading2Template():
|
||||
"variant": "text",
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"id": "2",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -332,7 +332,7 @@ def getReading2Template():
|
||||
"variant": "text",
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"id": "3",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -356,7 +356,7 @@ def getReading2Template():
|
||||
"variant": "text",
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"id": "4",
|
||||
"options": [
|
||||
{
|
||||
"id": "A",
|
||||
@@ -420,41 +420,34 @@ def getReading2Template():
|
||||
|
||||
def getSpeaking1Template():
|
||||
return {
|
||||
"exercises": [
|
||||
{
|
||||
"id": str(uuid.uuid4()),
|
||||
"prompts": [],
|
||||
"text": "Do you enjoy traveling?\\nWhat was the last place you visited for a holiday?\\nDo you prefer traveling "
|
||||
"by car or by plane?\\nWhat type of places do you like to visit when you travel?",
|
||||
"title": "Travel",
|
||||
"type": "speaking"
|
||||
}
|
||||
],
|
||||
"isDiagnostic": False,
|
||||
"minTimer": 5,
|
||||
"module": "speaking"
|
||||
"topic": "Travelling",
|
||||
"questions": [
|
||||
"Do you enjoy traveling?\\nWhat was the last place you visited for a holiday?\\nDo you prefer traveling "
|
||||
"by car or by plane?\\nWhat type of places do you like to visit when you travel?"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
def getSpeaking2Template():
|
||||
return {
|
||||
"exercises": [
|
||||
{
|
||||
"id": str(uuid.uuid4()),
|
||||
"prompts": [
|
||||
"Explain the circumstances that led to your need to adapt to a new environment.",
|
||||
"What were the major changes or differences in this new environment?",
|
||||
"How did you handle the process of adapting to these changes?",
|
||||
"Reflect on the impact this experience had on your adaptability and personal growth."
|
||||
],
|
||||
"text": "Describe an occasion when you had to adapt to a new environment.",
|
||||
"title": "New Environment",
|
||||
"type": "speaking"
|
||||
}
|
||||
],
|
||||
"isDiagnostic": False,
|
||||
"minTimer": 5,
|
||||
"module": "speaking"
|
||||
"topic": "New Environment",
|
||||
"questions": [
|
||||
"Explain the circumstances that led to your need to adapt to a new environment.\\n"
|
||||
"What were the major changes or differences in this new environment?\\n"
|
||||
"How did you handle the process of adapting to these changes?\\n"
|
||||
"Reflect on the impact this experience had on your adaptability and personal growth."
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
def getSpeaking3Template():
|
||||
return {
|
||||
"topic": "Technology and Society",
|
||||
"questions": [
|
||||
"How do you think technology has affected the way people communicate with each other in today's society?",
|
||||
"In what ways has the use of smartphones and social media platforms changed the dynamics of personal relationships?",
|
||||
"Some argue that technology has made communication more convenient, while others worry that it has led to a decline in face-to-face interactions. What's your perspective on this matter, and how do you think it might impact future generations?"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user