From b80dda46883e1eeef16dd8fcf61b3c183905f76d Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 4 Oct 2021 08:03:32 -0700 Subject: [PATCH] [ChatChart] Round "others" output --- chatchart/chatchart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index c3161cf..c1b00de 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -83,7 +83,7 @@ class Chatchart(commands.Cog): labels = ["{} {:g}%".format(x[0], round(x[1], 1)) for x in top] if len(top) >= 20: sizes = sizes + [others] - labels = labels + ["Others {:g}%".format(others)] + labels = labels + ["Others {:g}%".format(round(others, 1))] if len(channel_or_guild.name) >= 19: if isinstance(channel_or_guild, discord.Guild): channel_or_guild_name = "{}...".format(channel_or_guild.name[:19])