EMsurya commited on
Commit
61540a2
·
verified ·
1 Parent(s): f6da0fe

Update primitives/tools.py

Browse files
Files changed (1) hide show
  1. primitives/tools.py +5 -5
primitives/tools.py CHANGED
@@ -118,20 +118,20 @@ async def fetch_cricket_details(mode: Literal["live", "upcoming"])-> str:
118
  return response
119
 
120
 
121
- async def live_cricket_scorecard_herf()-> str:
122
  """String of comma separated anchor tags with hreg attributes that pointing to live cricket scorecards """
123
  response = await cricket_source('live', 'herf')
124
  return response
125
 
126
 
127
- async def live_cricket_scorecard(herf: str)-> str:
128
  """Get Live cricket match scorecard details.
129
- (e.g, herf = "/live-cricket-scorecard/119495/cd-vs-hbh-7th-match-global-super-league-2025")
130
 
131
  Args:
132
- herf: live cricket match scorecard endpoint
133
  """
134
- scorecard_url = f"{BASE_CRICKET_URL}{herf}"
135
 
136
  try:
137
  async with httpx.AsyncClient(timeout= 10.0) as client:
 
118
  return response
119
 
120
 
121
+ async def live_cricket_scorecard_href()-> str:
122
  """String of comma separated anchor tags with hreg attributes that pointing to live cricket scorecards """
123
  response = await cricket_source('live', 'herf')
124
  return response
125
 
126
 
127
+ async def live_cricket_scorecard(href: str)-> str:
128
  """Get Live cricket match scorecard details.
129
+ (e.g, href = "/live-cricket-scorecard/119495/cd-vs-hbh-7th-match-global-super-league-2025")
130
 
131
  Args:
132
+ href: live cricket match scorecard endpoint
133
  """
134
+ scorecard_url = f"{BASE_CRICKET_URL}{href}"
135
 
136
  try:
137
  async with httpx.AsyncClient(timeout= 10.0) as client: