nexusbert commited on
Commit
7c2a41d
·
verified ·
1 Parent(s): 20cff83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -297,10 +297,10 @@ def soccer_predictions():
297
  for league, code in SOCCER_LEAGUES.items():
298
  headers = {"X-Auth-Token": FOOTBALL_API_KEY}
299
  try:
300
- resp = requests.get(
301
  f"{FOOTBALL_ENDPOINT}?competitions={code}&dateFrom={date_from}&dateTo={date_to}",
302
- headers=headers
303
- )
304
  resp.raise_for_status()
305
  data = resp.json()
306
  matches = data.get("matches", [])
@@ -398,7 +398,7 @@ def soccer_predictions():
398
  })
399
 
400
  return {
401
- "date": today,
402
  "predictions": predictions,
403
  "debug_info": debug_info,
404
  "total_predictions": len(predictions)
 
297
  for league, code in SOCCER_LEAGUES.items():
298
  headers = {"X-Auth-Token": FOOTBALL_API_KEY}
299
  try:
300
+ resp = requests.get(
301
  f"{FOOTBALL_ENDPOINT}?competitions={code}&dateFrom={date_from}&dateTo={date_to}",
302
+ headers=headers
303
+ )
304
  resp.raise_for_status()
305
  data = resp.json()
306
  matches = data.get("matches", [])
 
398
  })
399
 
400
  return {
401
+ "date": today.isoformat(),
402
  "predictions": predictions,
403
  "debug_info": debug_info,
404
  "total_predictions": len(predictions)