From a334d43c557e1ef5e561c91ea95787a3df5a977f Mon Sep 17 00:00:00 2001 From: RLB <20372070+robbyblum@users.noreply.github.com> Date: Sat, 26 Dec 2020 20:18:01 -0500 Subject: [PATCH] fix 0 star display, hopefully --- the_prestige.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 1d795e9..7e1ee13 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -488,15 +488,13 @@ def build_star_embed(player_json): for key in starkeys.keys(): embedstring = "" starstring = str(player_json[key]) - if ".5" in starstring: - starnum = int(starstring[0]) - addhalf = True - else: - starnum = int(player_json[key]) - addhalf = False + starnum = int(starstring[0]) + addhalf = ".5" in starstring embedstring += "⭐" * starnum if addhalf: embedstring += "✨" + elif starnum == 0: # why check addhalf twice, amirite + embedstring += "⚪️" embed.add_field(name=starkeys[key], value=embedstring, inline=False) return embed