Multichem commited on
Commit
c9f3a65
·
1 Parent(s): b03db49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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