Spaces:
Build error
Build error
James McCool commited on
Commit ·
13f323e
1
Parent(s): 555ed46
Fixing typeerror
Browse files
global_func/contest_pricing_api.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from datetime import datetime
|
|
|
|
| 2 |
|
| 3 |
import pandas as pd
|
| 4 |
try:
|
|
@@ -76,7 +77,7 @@ def fetch_contests_for_selection(sport_var: str, type_var: str) -> list[dict]:
|
|
| 76 |
return filtered
|
| 77 |
|
| 78 |
|
| 79 |
-
def fetch_pricing_for_contest(contest_id: int
|
| 80 |
contest_data = _http_get_json(
|
| 81 |
f"https://api.draftkings.com/contests/v1/contests/{contest_id}?format=json"
|
| 82 |
)
|
|
|
|
| 1 |
from datetime import datetime
|
| 2 |
+
from typing import Union
|
| 3 |
|
| 4 |
import pandas as pd
|
| 5 |
try:
|
|
|
|
| 77 |
return filtered
|
| 78 |
|
| 79 |
|
| 80 |
+
def fetch_pricing_for_contest(contest_id: Union[int, str]) -> pd.DataFrame:
|
| 81 |
contest_data = _http_get_json(
|
| 82 |
f"https://api.draftkings.com/contests/v1/contests/{contest_id}?format=json"
|
| 83 |
)
|