From bde82ae975d3059617cdc57761f8a2ba9831e52b Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 6 Oct 2023 23:48:47 -0400 Subject: [PATCH] fix(moderation): history will no longer show case 0 --- moderation/moderation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moderation/moderation.py b/moderation/moderation.py index 89a48ec..1588364 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -565,6 +565,8 @@ class Moderation(commands.Cog): embed.set_author(icon_url=interaction.guild.icon.url, name='Infraction History') embed.set_footer(text=f"Page {page}/{page_quantity} | {case_quantity} Results") for case in result_dict_list[start_index:end_index]: + if str(case['moderation_id']) == '0': + continue target_user = await self.fetch_user_dict(interaction, case['target_id']) moderator_user = await self.fetch_user_dict(interaction, case['moderator_id']) target_name = f"`{target_user['name']}`" if target_user['discriminator'] == "0" else f"`{target_user['name']}#{target_user['discriminator']}`"