diff --git a/the_prestige.py b/the_prestige.py index 4385732..cecbdf4 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -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"]) \ No newline at end of file +client.run(config()["token"])