Spaces:
Sleeping
Sleeping
James McCool commited on
Commit ·
a263223
1
Parent(s): e8b276b
Implement position limiters for QB and TE in Streamlit app to restrict maximum values to 1, enhancing accuracy in player evaluations for Superflex formats.
Browse files- src/streamlit_app.py +6 -0
src/streamlit_app.py
CHANGED
|
@@ -374,6 +374,12 @@ def assign_vorp_scoring(frame: pd.DataFrame, halfPpr_rv: dict, custom_rv: dict,
|
|
| 374 |
rv_type = 'halfPpr'
|
| 375 |
elif league_settings['TYPE'] == 'TE Premium':
|
| 376 |
rv_type = 'ppr'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
|
| 378 |
vorp_frame = pd.DataFrame()
|
| 379 |
for positions in ['QB', 'RB', 'WR', 'TE']:
|
|
|
|
| 374 |
rv_type = 'halfPpr'
|
| 375 |
elif league_settings['TYPE'] == 'TE Premium':
|
| 376 |
rv_type = 'ppr'
|
| 377 |
+
|
| 378 |
+
if league_settings['QB'] > 1:
|
| 379 |
+
pos_vorp_limiters['QB'] = 1
|
| 380 |
+
|
| 381 |
+
if league_settings['TE'] > 1:
|
| 382 |
+
pos_vorp_limiters['TE'] = 1
|
| 383 |
|
| 384 |
vorp_frame = pd.DataFrame()
|
| 385 |
for positions in ['QB', 'RB', 'WR', 'TE']:
|