Skip to content

Commit

Permalink
Removed the filter by game option
Browse files Browse the repository at this point in the history
Was removed or altered in original api so needs further testing to find out what it was changed to.
  • Loading branch information
Gnomeslayer committed Sep 27, 2024
1 parent af38de7 commit 4312c7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions battlemetrics/components/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 4312c7a

Please sign in to comment.