fix onomancer import with add_pitcher
This commit is contained in:
parent
ebaef8828c
commit
56fbe809c7
|
@ -1015,7 +1015,8 @@ def team_from_collection(newteam_json):
|
||||||
newteam.slogan = newteam_json["slogan"]
|
newteam.slogan = newteam_json["slogan"]
|
||||||
for player in newteam_json["lineup"]:
|
for player in newteam_json["lineup"]:
|
||||||
newteam.add_lineup(games.player(json.dumps(player)))
|
newteam.add_lineup(games.player(json.dumps(player)))
|
||||||
newteam.set_pitcher(games.player(json.dumps(newteam_json["rotation"][0])))
|
for player in newteam_json["rotation"]:
|
||||||
|
newteam.add_pitcher(games.player(json.dumps(player)))
|
||||||
|
|
||||||
return newteam
|
return newteam
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user