erroneous not

This commit is contained in:
joe 2021-01-05 09:15:54 -08:00
parent 56fbe809c7
commit 60196929fd

View File

@ -1003,7 +1003,7 @@ def team_from_collection(newteam_json):
raise CommandError("We've given you 100 characters for the slogan. Discord puts limits on us and thus, we put limits on you. C'est la vie.") raise CommandError("We've given you 100 characters for the slogan. Discord puts limits on us and thus, we put limits on you. C'est la vie.")
if len(newteam_json["lineup"]) > 20: if len(newteam_json["lineup"]) > 20:
raise CommandError("20 players in the lineup, maximum. We're being really generous here.") raise CommandError("20 players in the lineup, maximum. We're being really generous here.")
if not len(newteam_json["rotation"]) > 8: if len(newteam_json["rotation"]) > 8:
raise CommandError("8 pitchers on the rotation, max. That's a *lot* of pitchers.") raise CommandError("8 pitchers on the rotation, max. That's a *lot* of pitchers.")
for player in newteam_json["lineup"] + newteam_json["rotation"]: for player in newteam_json["lineup"] + newteam_json["rotation"]:
if len(player["name"]) > 70: if len(player["name"]) > 70: