Update routes/onboarding.py
Browse files- routes/onboarding.py +3 -2
routes/onboarding.py
CHANGED
@@ -37,7 +37,7 @@ async def get_onboarding_questions() -> Dict[str, List[Dict[str, Any]]]:
|
|
37 |
Retorna todas as perguntas de onboarding, separadas por target_type (client e stylist).
|
38 |
"""
|
39 |
try:
|
40 |
-
query_url = f"{SUPABASE_URL}/rest/v1/Onboarding?select=id,title,description,question_type,options,target_type,optional"
|
41 |
headers = SUPABASE_HEADERS.copy()
|
42 |
headers["Accept"] = "application/json"
|
43 |
|
@@ -60,7 +60,8 @@ async def get_onboarding_questions() -> Dict[str, List[Dict[str, Any]]]:
|
|
60 |
"description": question.get("description"),
|
61 |
"question_type": question["question_type"],
|
62 |
"options": question.get("options", []),
|
63 |
-
"optional": question.get("optional", False)
|
|
|
64 |
}
|
65 |
|
66 |
if question["target_type"] == "client":
|
|
|
37 |
Retorna todas as perguntas de onboarding, separadas por target_type (client e stylist).
|
38 |
"""
|
39 |
try:
|
40 |
+
query_url = f"{SUPABASE_URL}/rest/v1/Onboarding?select=id,title,description,question_type,options,target_type,optional,lock"
|
41 |
headers = SUPABASE_HEADERS.copy()
|
42 |
headers["Accept"] = "application/json"
|
43 |
|
|
|
60 |
"description": question.get("description"),
|
61 |
"question_type": question["question_type"],
|
62 |
"options": question.get("options", []),
|
63 |
+
"optional": question.get("optional", False),
|
64 |
+
"lock": question.get("lock", False)
|
65 |
}
|
66 |
|
67 |
if question["target_type"] == "client":
|