Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
8231c22
1
Parent(s):
db213bc
Refactor opponent variable assignment in app.py to simplify logic for team identification, removing site-specific conditions for Draftkings and Fanduel. This change enhances code clarity and maintainability.
Browse files
app.py
CHANGED
|
@@ -236,13 +236,7 @@ with tab1:
|
|
| 236 |
|
| 237 |
while x <= len(raw_baselines['Team'].unique()):
|
| 238 |
stack_var1 = raw_baselines['Team'].unique()[x-1]
|
| 239 |
-
|
| 240 |
-
opp_var1 = opp_dict[stack_var1]
|
| 241 |
-
elif site_var1 == 'Fanduel':
|
| 242 |
-
if stack_var1 == 'JAC':
|
| 243 |
-
stack_var1 = 'JAX'
|
| 244 |
-
else:
|
| 245 |
-
opp_var1 = opp_dict[stack_var1]
|
| 246 |
st.write(stack_var1)
|
| 247 |
sorted_lineup = []
|
| 248 |
p_used = []
|
|
|
|
| 236 |
|
| 237 |
while x <= len(raw_baselines['Team'].unique()):
|
| 238 |
stack_var1 = raw_baselines['Team'].unique()[x-1]
|
| 239 |
+
opp_var1 = opp_dict[stack_var1]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
st.write(stack_var1)
|
| 241 |
sorted_lineup = []
|
| 242 |
p_used = []
|