From 4312c7a02adce463b08fad64db4ef22b37a05ff0 Mon Sep 17 00:00:00 2001 From: Gnomeslayer Date: Fri, 27 Sep 2024 19:12:44 +1000 Subject: [PATCH] Removed the filter by game option Was removed or altered in original api so needs further testing to find out what it was changed to. --- battlemetrics/components/player.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/battlemetrics/components/player.py b/battlemetrics/components/player.py index cdb8bf1..5d5b054 100644 --- a/battlemetrics/components/player.py +++ b/battlemetrics/components/player.py @@ -26,7 +26,7 @@ async def identifiers(self, player_id: int) -> dict: } return await self.helpers._make_request(method="GET", url=url, params=data) - async def search(self, search: str = None, filter_game: str = None, filter_online: bool = False, filter_servers: int = None, filter_organization: int = None, filter_public: bool = False, flag: str = None) -> dict: + async def search(self, search: str = None, filter_online: bool = False, filter_servers: int = None, filter_organization: int = None, filter_public: bool = False, flag: str = None) -> dict: """Grabs a list of players based on the filters provided. For accurate information, filter by server or organization. Documentation: https://www.battlemetrics.com/developers/documentation#link-GET-player-/players Args: @@ -64,8 +64,8 @@ async def search(self, search: str = None, filter_game: str = None, filter_onlin else: data['filter[public]'] = "false" - if filter_game: - data['server']['game'] = filter_game + #if filter_game: + # data['server']['game'] = filter_game return await self.helpers._make_request(method="GET", url=url, params=data)