Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -333,6 +333,7 @@ with tab2:
|
|
| 333 |
player_proj = dict(zip(flex_file['Player'], flex_file['Median']))
|
| 334 |
|
| 335 |
obj_salary = {idx: (flex_file['Salary'][idx]) for idx in flex_file.index}
|
|
|
|
| 336 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) <= max_sal1
|
| 337 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) >= min_sal1
|
| 338 |
|
|
|
|
| 333 |
player_proj = dict(zip(flex_file['Player'], flex_file['Median']))
|
| 334 |
|
| 335 |
obj_salary = {idx: (flex_file['Salary'][idx]) for idx in flex_file.index}
|
| 336 |
+
obj_own_max = {idx: (flex_file['Proj DK Own%'][idx]) for idx in flex_file.index}
|
| 337 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) <= max_sal1
|
| 338 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) >= min_sal1
|
| 339 |
|