From 1b8a597af817b7f99e4811d961d2c33965ae4ff1 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sat, 26 Dec 2020 18:12:38 -0500 Subject: [PATCH] removes trailing spaces from player names in saveteam --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 8b46ea3..1d795e9 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -512,11 +512,11 @@ async def save_team_batch(message, command): if len(roster[rosternum]) > 70: await channel.send(f"{roster[rosternum]} is too long, chief. 70 or less.") return - newteam.add_lineup(games.player(ono.get_stats(roster[rosternum]))) + newteam.add_lineup(games.player(ono.get_stats(roster[rosternum].rstrip()))) if len(roster[len(roster)-1]) > 70: await channel.send(f"{roster[len(roster)-1]} is too long, chief. 70 or less.") return - newteam.set_pitcher(games.player(ono.get_stats(roster[len(roster)-1]))) #last line is pitcher name + newteam.set_pitcher(games.player(ono.get_stats(roster[len(roster)-1].rstrip()))) #last line is pitcher name if len(newteam.name) > 30: await message.channel.send("Team names have to be less than 30 characters! Try again.")