fix onomancer import with add_pitcher

This commit is contained in:
joe 2021-01-05 09:09:41 -08:00
parent ebaef8828c
commit 56fbe809c7

View File

@ -1015,7 +1015,8 @@ def team_from_collection(newteam_json):
newteam.slogan = newteam_json["slogan"]
for player in newteam_json["lineup"]:
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
@ -1165,4 +1166,4 @@ def get_team_fuzzy_search(team_name):
team = teams[0]
return team
client.run(config()["token"])
client.run(config()["token"])