Spaces:
Running
Running
File size: 359 Bytes
33c77d4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
def get_col_width(col, player_team_type):
match col:
case 'Pitcher' | 'Batter':
return 125
case 'Team':
return 75
case 'Throws' | 'Bats':
return 60
case 'IP':
return 60 if player_team_type == 'team pitching' else 50
case 'Pitch' | 'Pitch (General)':
return 125
case _:
return max(50, 10*len(col))
|