Spaces:
Running
Running
James McCool
commited on
Commit
·
d4b74a6
1
Parent(s):
53b3878
Fix player selection logic in app.py to correctly handle auto_size_var for 'Mid (4-8)' condition. This adjustment ensures accurate player selection based on the specified size, enhancing the functionality of the application.
Browse files
app.py
CHANGED
@@ -969,7 +969,7 @@ with tab4:
|
|
969 |
if auto_range_var == 'Top (1-5)':
|
970 |
selected_players = team_players[team_players['Order'] > 0].head(auto_size_var)
|
971 |
elif auto_range_var == 'Mid (4-8)':
|
972 |
-
selected_players = team_players[team_players['Order'] > 0].iloc[3:3 + auto_size_var
|
973 |
elif auto_range_var == 'Wrap (7-2)':
|
974 |
if auto_size_var == 5:
|
975 |
first_three = team_players[team_players['Order'] > 0].head(2)
|
|
|
969 |
if auto_range_var == 'Top (1-5)':
|
970 |
selected_players = team_players[team_players['Order'] > 0].head(auto_size_var)
|
971 |
elif auto_range_var == 'Mid (4-8)':
|
972 |
+
selected_players = team_players[team_players['Order'] > 0].iloc[3:3 + auto_size_var]
|
973 |
elif auto_range_var == 'Wrap (7-2)':
|
974 |
if auto_size_var == 5:
|
975 |
first_three = team_players[team_players['Order'] > 0].head(2)
|