Fix 2-way position string bug
This commit is contained in:
parent
7a5dd257ef
commit
b03cf19bf7
@ -1194,15 +1194,15 @@ def get_pos_data(all_pos, is_pitcher: bool = False) -> dict:
|
||||
arm_added = False
|
||||
first = True
|
||||
for x in all_pos:
|
||||
if not first:
|
||||
final += ', '
|
||||
|
||||
first = False
|
||||
if is_pitcher:
|
||||
if x.position == 'P':
|
||||
final += f'p-{x.range}e{x.error}'
|
||||
break
|
||||
else:
|
||||
if x.position != 'P':
|
||||
if not first:
|
||||
final += ', '
|
||||
first = False
|
||||
final += x.position.lower()
|
||||
if x.position != 'DH':
|
||||
final += f'-{x.range}'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user