wphoenix commited on
Commit
020a27a
·
verified ·
1 Parent(s): d6ef9fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -62,8 +62,9 @@ def fetch_active_crypto()-> dict[str, int]: #it's important to specify the retur
62
 
63
  try:
64
  response = session.get(url, params=parameters)
65
- data = json.loads(response.text)
66
- return top_10_items_from_json(data)
 
67
  except (ConnectionError, Timeout, TooManyRedirects) as e:
68
  return e
69
 
 
62
 
63
  try:
64
  response = session.get(url, params=parameters)
65
+ # data = json.loads(response.text)
66
+ # return top_10_items_from_json(data)
67
+ return top_10_items_from_json(response.text)
68
  except (ConnectionError, Timeout, TooManyRedirects) as e:
69
  return e
70