Skip to content

Commit 59687fd

Browse files
authored
Revert for now
1 parent a6c9324 commit 59687fd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

brawlstats/utils.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
import os
32
import re
43

@@ -16,12 +15,19 @@ def __init__(self, base_url):
1615
self.BATTLELOG = self.BASE + '/player/battlelog'
1716
self.CLUB_SEARCH = self.BASE + '/club/search'
1817
self.CONSTANTS = 'https://fourjr.herokuapp.com/bs/constants/'
18+
self.BRAWLERS = [
19+
'shelly', 'nita', 'colt', 'bull', 'jessie', # league reward 0-500
20+
'brock', 'dynamike', 'bo', 'tick', # league reward 1000+
21+
'el primo', 'barley', 'poco', 'rosa', # rare
22+
'rico', 'penny', 'darryl', 'carl', # super rare
23+
'frank', 'pam', 'piper', 'bibi', # epic
24+
'mortis', 'tara', 'gene', # mythic
25+
'spike', 'crow', 'leon' # legendary
26+
]
1927

2028
path = os.path.dirname(__file__)
2129
with open(os.path.join(path, '__init__.py')) as f:
2230
self.VERSION = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
23-
with open(os.path.join(path, 'constants.json')) as f:
24-
self.BRAWLERS = [b['tID'] for b in json.load(f)['characters']]
2531

2632

2733
def bstag(tag):

0 commit comments

Comments
 (0)