Skip to content

Commit c2dd9a1

Browse files
committed
brawlapi no longer converts to scIDs
1 parent 5d2b1dd commit c2dd9a1

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

brawlstats/brawlapi/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,8 @@ def get_leaderboard(self, lb_type: str, limit: int=200, region='global', brawler
251251
"""
252252
if brawler:
253253
brawler = brawler.lower()
254-
if brawler not in self.api.BRAWLERS and lb_type not in ['players', 'clubs', 'brawlers']:
254+
if brawler not in self.api.BRAWLERS.keys() and lb_type not in ['players', 'clubs', 'brawlers']:
255255
raise ValueError("Please enter 'players', 'clubs' or 'brawlers'.")
256-
if brawler in self.api.BRAWLERS.keys():
257-
brawler = self.api.BRAWLERS[brawler]
258256

259257
if type(limit) != int:
260258
raise ValueError("Make sure 'count' is an int")

brawlstats/officialapi/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def __init__(self, base_url, version=1):
1414
self.PROFILE = self.BASE + '/players'
1515
self.CLUB = self.BASE + '/clubs'
1616
self.RANKINGS = self.BASE + '/rankings'
17-
self.BRAWLERS = self.CLUB + '/brawlers'
1817
self.CONSTANTS = 'https://fourjr.herokuapp.com/bs/constants/'
1918

2019
path = os.path.join(os.path.dirname(__file__), os.path.pardir)

0 commit comments

Comments
 (0)