SergeyO7 commited on
Commit
ea0ec07
·
verified ·
1 Parent(s): bdcd9fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -67,13 +67,14 @@ async def check_n_load_attach(session: aiohttp.ClientSession, task_id: str, api_
67
  print(f"File downloaded successfully: {local_file_path}")
68
  return local_file_path
69
  else:
70
- print(f"No attachment found for task {task_id}")
71
  return None
72
  except aiohttp.ClientError as e:
73
  print(f"Error downloading attachment for task {task_id}: {str(e)}")
74
  return None
75
 
76
- async def fetch_questions(session: aiohttp.ClientSession, questions_url: str) -> list:
 
77
  """Fetch questions asynchronously."""
78
  try:
79
  async with session.get(questions_url, timeout=15) as response:
 
67
  print(f"File downloaded successfully: {local_file_path}")
68
  return local_file_path
69
  else:
70
+ # print(f"No attachment found for task {task_id}")
71
  return None
72
  except aiohttp.ClientError as e:
73
  print(f"Error downloading attachment for task {task_id}: {str(e)}")
74
  return None
75
 
76
+ async def fetch_questions(session
77
+ : aiohttp.ClientSession, questions_url: str) -> list:
78
  """Fetch questions asynchronously."""
79
  try:
80
  async with session.get(questions_url, timeout=15) as response: