James McCool
commited on
Commit
·
37a0284
1
Parent(s):
b14eb85
Update app.py to standardize casing for 'Slate' values in Draftkings and Fanduel queries from 'Main Slate' and 'Secondary Slate' to 'main_slate' and 'secondary_slate'.
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def init_DK_seed_frames(sharp_split):
|
|
58 |
|
59 |
# Get the valid players from the Range of Outcomes collection
|
60 |
collection = db["Player_Range_Of_Outcomes"]
|
61 |
-
cursor = collection.find({"Site": "Draftkings", "Slate": "
|
62 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
63 |
|
64 |
collection = db["DK_MLB_seed_frame"]
|
@@ -89,7 +89,7 @@ def init_DK_secondary_seed_frames(sharp_split):
|
|
89 |
|
90 |
# Get the valid players from the Range of Outcomes collection
|
91 |
collection = db["Player_Range_Of_Outcomes"]
|
92 |
-
cursor = collection.find({"Site": "Draftkings", "Slate": "
|
93 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
94 |
|
95 |
collection = db["DK_MLB_secondary_seed_frame"]
|
@@ -120,7 +120,7 @@ def init_FD_seed_frames(sharp_split):
|
|
120 |
|
121 |
# Get the valid players from the Range of Outcomes collection
|
122 |
collection = db["Player_Range_Of_Outcomes"]
|
123 |
-
cursor = collection.find({"Site": "Fanduel", "Slate": "
|
124 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
125 |
|
126 |
collection = db["FD_MLB_seed_frame"]
|
@@ -151,7 +151,7 @@ def init_FD_secondary_seed_frames(sharp_split):
|
|
151 |
|
152 |
# Get the valid players from the Range of Outcomes collection
|
153 |
collection = db["Player_Range_Of_Outcomes"]
|
154 |
-
cursor = collection.find({"Site": "Fanduel", "Slate": "
|
155 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
156 |
|
157 |
collection = db["FD_MLB_secondary_seed_frame"]
|
|
|
58 |
|
59 |
# Get the valid players from the Range of Outcomes collection
|
60 |
collection = db["Player_Range_Of_Outcomes"]
|
61 |
+
cursor = collection.find({"Site": "Draftkings", "Slate": "main_slate"})
|
62 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
63 |
|
64 |
collection = db["DK_MLB_seed_frame"]
|
|
|
89 |
|
90 |
# Get the valid players from the Range of Outcomes collection
|
91 |
collection = db["Player_Range_Of_Outcomes"]
|
92 |
+
cursor = collection.find({"Site": "Draftkings", "Slate": "secondary_slate"})
|
93 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
94 |
|
95 |
collection = db["DK_MLB_secondary_seed_frame"]
|
|
|
120 |
|
121 |
# Get the valid players from the Range of Outcomes collection
|
122 |
collection = db["Player_Range_Of_Outcomes"]
|
123 |
+
cursor = collection.find({"Site": "Fanduel", "Slate": "main_slate"})
|
124 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
125 |
|
126 |
collection = db["FD_MLB_seed_frame"]
|
|
|
151 |
|
152 |
# Get the valid players from the Range of Outcomes collection
|
153 |
collection = db["Player_Range_Of_Outcomes"]
|
154 |
+
cursor = collection.find({"Site": "Fanduel", "Slate": "secondary_slate"})
|
155 |
valid_players = set(pd.DataFrame(list(cursor))['Player'].unique())
|
156 |
|
157 |
collection = db["FD_MLB_secondary_seed_frame"]
|