Spaces:
Sleeping
Sleeping
Update primitives/tools.py
Browse files- 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
|
| 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(
|
| 128 |
"""Get Live cricket match scorecard details.
|
| 129 |
-
(e.g,
|
| 130 |
|
| 131 |
Args:
|
| 132 |
-
|
| 133 |
"""
|
| 134 |
-
scorecard_url = f"{BASE_CRICKET_URL}{
|
| 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:
|