Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -115,7 +115,9 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 115 |
|
| 116 |
# Fetch questions
|
| 117 |
try:
|
| 118 |
-
|
|
|
|
|
|
|
| 119 |
if not questions_data:
|
| 120 |
return "Fetched questions list is empty or invalid format.", None
|
| 121 |
print(f"Fetched {len(questions_data)} questions.")
|
|
|
|
| 115 |
|
| 116 |
# Fetch questions
|
| 117 |
try:
|
| 118 |
+
questions_data_v2 = api_client.get_questions()
|
| 119 |
+
questions_data=[]
|
| 120 |
+
questions_data.append(questions_data_v2[0])
|
| 121 |
if not questions_data:
|
| 122 |
return "Fetched questions list is empty or invalid format.", None
|
| 123 |
print(f"Fetched {len(questions_data)} questions.")
|