sreenivas-rao commited on
Commit
d39c64a
·
verified ·
1 Parent(s): 538840c

return only match names

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def get_live_cricket_matches()-> str: #it's import to specify the return type
29
  if "date" in match and match["date"].startswith(today):
30
  if match.get("matchType") == "t20" or match.get("matchType") == "odi":
31
  match_info.append(
32
- f"{" vs ".join(match.get('teams', []))} -- {match.get("status")}"
33
  )
34
  return "\n".join(match_info)
35
  return {"error": "Unable to fetch match data"}
 
29
  if "date" in match and match["date"].startswith(today):
30
  if match.get("matchType") == "t20" or match.get("matchType") == "odi":
31
  match_info.append(
32
+ f"{' vs '.join(match.get('teams', []))} -- {match.get('status')}"
33
  )
34
  return "\n".join(match_info)
35
  return {"error": "Unable to fetch match data"}