You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Never mind, I was able to resolve the problem by using lineupSlot. I don't quite understand what slot_position is supposed to return, so I will leave this open in case I found an actual issue.
Code:
my_team = league.teams[1]
for player in my_team.roster:
print(player.name + ': ' + str(player.lineupSlot))
Output:
Giannis Antetokounmpo: BE
Victor Wembanyama: IR
De'Aaron Fox: UT
Cade Cunningham: BE
Jaylen Brown: F
CJ McCollum: UT
Chris Paul: BE
O.G. Anunoby: SF
Dennis Schroder: PG
De'Anthony Melton: UT
Cameron Johnson: PF
Coby White: SG
Dante Exum: G
Naz Reid: C
Sport
Basketball
Summary
I'm running into an issue where I use slot_position and it only returns "PG." I don't quite understand why this is happening.
Logs/Data
Code:
Output:
CJ McCollum: PG
Coby White: PG
O.G. Anunoby: PG
Cade Cunningham: PG
Naz Reid: PG
De'Anthony Melton: PG
Chris Paul: PG
Jaylen Brown: PG
Cameron Johnson: PG
Dennis Schroder: PG
Giannis Antetokounmpo: PG
Dante Exum: PG
The text was updated successfully, but these errors were encountered: