Spaces:
Running
Running
James McCool
commited on
Commit
·
bc54484
1
Parent(s):
0909cb6
adding query limiting
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ fd_columns = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'sal
|
|
58 |
def init_DK_seed_frames(sharp_split):
|
59 |
|
60 |
collection = db["DK_NFL_seed_frame"]
|
61 |
-
cursor = collection.find()
|
62 |
|
63 |
raw_display = pd.DataFrame(list(cursor))
|
64 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
@@ -71,7 +71,7 @@ def init_DK_seed_frames(sharp_split):
|
|
71 |
def init_DK_Secondary_seed_frames(sharp_split):
|
72 |
|
73 |
collection = db["DK_NFL_Secondary_seed_frame"]
|
74 |
-
cursor = collection.find()
|
75 |
|
76 |
raw_display = pd.DataFrame(list(cursor))
|
77 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
@@ -84,7 +84,7 @@ def init_DK_Secondary_seed_frames(sharp_split):
|
|
84 |
def init_FD_seed_frames(sharp_split):
|
85 |
|
86 |
collection = db["FD_NFL_seed_frame"]
|
87 |
-
cursor = collection.find()
|
88 |
|
89 |
raw_display = pd.DataFrame(list(cursor))
|
90 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
@@ -97,7 +97,7 @@ def init_FD_seed_frames(sharp_split):
|
|
97 |
def init_FD_Secondary_seed_frames(sharp_split):
|
98 |
|
99 |
collection = db["FD_NFL_Secondary_seed_frame"]
|
100 |
-
cursor = collection.find()
|
101 |
|
102 |
raw_display = pd.DataFrame(list(cursor))
|
103 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
|
|
58 |
def init_DK_seed_frames(sharp_split):
|
59 |
|
60 |
collection = db["DK_NFL_seed_frame"]
|
61 |
+
cursor = collection.find().limit(sharp_split)
|
62 |
|
63 |
raw_display = pd.DataFrame(list(cursor))
|
64 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
|
|
71 |
def init_DK_Secondary_seed_frames(sharp_split):
|
72 |
|
73 |
collection = db["DK_NFL_Secondary_seed_frame"]
|
74 |
+
cursor = collection.find().limit(sharp_split)
|
75 |
|
76 |
raw_display = pd.DataFrame(list(cursor))
|
77 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
|
|
84 |
def init_FD_seed_frames(sharp_split):
|
85 |
|
86 |
collection = db["FD_NFL_seed_frame"]
|
87 |
+
cursor = collection.find().limit(sharp_split)
|
88 |
|
89 |
raw_display = pd.DataFrame(list(cursor))
|
90 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
|
|
97 |
def init_FD_Secondary_seed_frames(sharp_split):
|
98 |
|
99 |
collection = db["FD_NFL_Secondary_seed_frame"]
|
100 |
+
cursor = collection.find().limit(sharp_split)
|
101 |
|
102 |
raw_display = pd.DataFrame(list(cursor))
|
103 |
raw_display = raw_display[['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|