James McCool commited on
Commit
7a99266
·
1 Parent(s): 08db99b

Refactor position counting logic in 'Stack Finder' tab to simplify increments for player positions in Streamlit app

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -7
src/streamlit_app.py CHANGED
@@ -252,13 +252,7 @@ if selected_tab == 'Stack Finder':
252
 
253
  # For each position they can play
254
  for pos in player_positions:
255
- if pos != 'UTIL':
256
- position_counts[pos] += 1
257
- if pos == 'UTIL':
258
- # UTIL can be filled by any position
259
- for p in position_counts:
260
- if p not in ['QB', 'DST']:
261
- position_counts[p] += 1
262
 
263
  # Check if any position exceeds its limit
264
  for pos, limit in position_limits.items():
 
252
 
253
  # For each position they can play
254
  for pos in player_positions:
255
+ position_counts[pos] += 1
 
 
 
 
 
 
256
 
257
  # Check if any position exceeds its limit
258
  for pos, limit in position_limits.items():