Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -787,6 +787,7 @@ with tab2:
|
|
787 |
player_proj = dict(zip(flex_file['Player'], flex_file['Median']))
|
788 |
|
789 |
obj_salary = {idx: (flex_file['Salary'][idx]) for idx in flex_file.index}
|
|
|
790 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) <= max_sal1
|
791 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) >= min_sal1
|
792 |
|
|
|
787 |
player_proj = dict(zip(flex_file['Player'], flex_file['Median']))
|
788 |
|
789 |
obj_salary = {idx: (flex_file['Salary'][idx]) for idx in flex_file.index}
|
790 |
+
obj_own_max = {idx: (flex_file['Proj DK Own%'][idx]) for idx in flex_file.index}
|
791 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) <= max_sal1
|
792 |
total_score += pulp.lpSum([player_vars[idx]*obj_salary[idx] for idx in flex_file.index]) >= min_sal1
|
793 |
|