Skip to content

Commit

Permalink
fix: dedupe multi player models
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Oct 15, 2023
1 parent 3ad8e32 commit 967192c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exts/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 967192c

Please sign in to comment.