From 0141723e1b3a4d335e4ceb35084128e06d1de17d Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 20 Dec 2020 14:05:31 -0500 Subject: [PATCH] fixed bug displaying half-stars --- the_prestige.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/the_prestige.py b/the_prestige.py index 3f06b1d..2c476ac 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -102,8 +102,9 @@ def build_star_embed(player_json): starkeys = {"batting_stars" : "Batting", "pitching_stars" : "Pitching", "baserunning_stars" : "Baserunning", "defense_stars" : "Defense"} embed = discord.Embed(color=discord.Color.purple(), title=player_json["name"]) for key in starkeys.keys(): + embedstring = "" starstring = str(player_json[key]) - if "." in starstring: + if ".5" in starstring: starnum = int(starstring[0]) addhalf = True else: