Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def getCompetitionInitials(competition_name: str) -> str:
|
|
19 |
Returns the competition initials (code) for a given competition name.
|
20 |
|
21 |
Args:
|
22 |
-
|
23 |
|
24 |
Returns:
|
25 |
str: The competition code if found, otherwise None.
|
@@ -52,8 +52,8 @@ def getCompetitionMatchesResultsByDate(competition_code: str, match_date: date)
|
|
52 |
Gets football match results for a given competition on a specified date.
|
53 |
|
54 |
Args:
|
55 |
-
competitionInitials
|
56 |
-
match_date
|
57 |
|
58 |
Returns:
|
59 |
dict: The JSON response from the API if successful, or an error message.
|
|
|
19 |
Returns the competition initials (code) for a given competition name.
|
20 |
|
21 |
Args:
|
22 |
+
competition_name: A string representing the full name of the competition, e.g., "Premier League" or "Bundesliga".
|
23 |
|
24 |
Returns:
|
25 |
str: The competition code if found, otherwise None.
|
|
|
52 |
Gets football match results for a given competition on a specified date.
|
53 |
|
54 |
Args:
|
55 |
+
competitionInitials: A string representing the code of the competition (e.g., 'PL' for Premier League).
|
56 |
+
match_date: A date representing the date for which to retrieve match results (format: YYYY-MM-DD).
|
57 |
|
58 |
Returns:
|
59 |
dict: The JSON response from the API if successful, or an error message.
|