@@ -218,7 +218,7 @@ def get_club(self, tag: bstag):
218218
219219 return self ._get_model (url , model = Club )
220220
221- def get_leaderboard (self , lb_type : str , count : int = 200 ):
221+ def get_leaderboard (self , lb_type : str , count : int = 200 , region = 'global' ):
222222 """Get the top count players/clubs/brawlers.
223223
224224 Parameters
@@ -237,9 +237,9 @@ def get_leaderboard(self, lb_type: str, count: int=200):
237237 raise ValueError ("Make sure 'count' is an int" )
238238 if lb_type not in self .api .BRAWLERS + ['players' , 'clubs' ] or not 0 < count <= 200 :
239239 raise ValueError ("Please enter 'players', 'clubs' or a brawler or make sure 'count' is between 1 and 200." )
240- url = '{}/{}?count={}' .format (self .api .LEADERBOARD , lb_type , count )
240+ url = '{}/{}?count={}®ion={} ' .format (self .api .LEADERBOARD , lb_type , count , region )
241241 if lb_type in self .api .BRAWLERS :
242- url = '{}/players?count={}&brawlers={}' .format (self .api .LEADERBOARD , count , lb_type )
242+ url = '{}/players?count={}&brawlers={}®ion={} ' .format (self .api .LEADERBOARD , count , lb_type , region )
243243
244244 return self ._get_model (url , model = Leaderboard )
245245
0 commit comments