vallurimahanth commited on
Commit
ba731d3
·
verified ·
1 Parent(s): fbe734d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -115,7 +115,9 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
115
 
116
  # Fetch questions
117
  try:
118
- questions_data = api_client.get_questions()
 
 
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.")