Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,14 +41,14 @@ fd_columns = ['P', 'C_1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'UTIL', 'salar
|
|
| 41 |
|
| 42 |
@st.cache_data(ttl = 599)
|
| 43 |
def init_seed_frames(_database):
|
| 44 |
-
collection =
|
| 45 |
cursor = collection.find()
|
| 46 |
|
| 47 |
raw_display = pd.DataFrame(list(cursor))
|
| 48 |
raw_display = raw_display[['SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count']]
|
| 49 |
DK_seed = raw_display.to_numpy()
|
| 50 |
|
| 51 |
-
collection =
|
| 52 |
cursor = collection.find()
|
| 53 |
|
| 54 |
raw_display = pd.DataFrame(list(cursor))
|
|
|
|
| 41 |
|
| 42 |
@st.cache_data(ttl = 599)
|
| 43 |
def init_seed_frames(_database):
|
| 44 |
+
collection = _database["DK_MLB_seed_frame"]
|
| 45 |
cursor = collection.find()
|
| 46 |
|
| 47 |
raw_display = pd.DataFrame(list(cursor))
|
| 48 |
raw_display = raw_display[['SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count']]
|
| 49 |
DK_seed = raw_display.to_numpy()
|
| 50 |
|
| 51 |
+
collection = _database["FD_MLB_seed_frame"]
|
| 52 |
cursor = collection.find()
|
| 53 |
|
| 54 |
raw_display = pd.DataFrame(list(cursor))
|