From 967192ccade4d83aa3f729bfe0ac63623e5509b3 Mon Sep 17 00:00:00 2001 From: AstreaTSS <25420078+AstreaTSS@users.noreply.github.com> Date: Sun, 15 Oct 2023 19:07:49 -0400 Subject: [PATCH] fix: dedupe multi player models --- exts/statistics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exts/statistics.py b/exts/statistics.py index b5b85936..a076abe6 100644 --- a/exts/statistics.py +++ b/exts/statistics.py @@ -345,7 +345,9 @@ async def multi_player_modals(self, event: ipy.events.ModalCompletion) -> None: if not gamertags: raise ipy.errors.BadArgument("No gamertags were provided.") - gamertags_list = gamertags.splitlines() + gamertags_list = list( + dict.fromkeys(gamertags.splitlines()) + ) # basic order keeping dedupe limit = 5 if config.valid_premium else 2