Spaces:
Running
Running
James McCool
commited on
Commit
·
9c817f8
1
Parent(s):
c2f15fd
Refactor app.py to update database collection names for DK and FD secondary seed frame initializations. This change improves clarity and consistency in data retrieval by aligning collection names with their respective functionalities, enhancing overall data handling during contest simulations.
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def init_DK_seed_frames(sharp_split):
|
|
45 |
@st.cache_data(ttl = 600)
|
46 |
def init_DK_Secondary_seed_frames(sharp_split):
|
47 |
|
48 |
-
collection = db['
|
49 |
cursor = collection.find()
|
50 |
raw_data = pd.DataFrame(list(cursor))
|
51 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
@@ -87,7 +87,7 @@ def init_FD_seed_frames(sharp_split):
|
|
87 |
@st.cache_data(ttl = 599)
|
88 |
def init_FD_Secondary_seed_frames(sharp_split):
|
89 |
|
90 |
-
collection = db['
|
91 |
cursor = collection.find()
|
92 |
raw_data = pd.DataFrame(list(cursor))
|
93 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
|
|
45 |
@st.cache_data(ttl = 600)
|
46 |
def init_DK_Secondary_seed_frames(sharp_split):
|
47 |
|
48 |
+
collection = db['DK_NFL_Secondary_name_map']
|
49 |
cursor = collection.find()
|
50 |
raw_data = pd.DataFrame(list(cursor))
|
51 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
|
|
87 |
@st.cache_data(ttl = 599)
|
88 |
def init_FD_Secondary_seed_frames(sharp_split):
|
89 |
|
90 |
+
collection = db['FD_NFL_Secondary_name_map']
|
91 |
cursor = collection.find()
|
92 |
raw_data = pd.DataFrame(list(cursor))
|
93 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|