mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
First bugfix of the season
This commit is contained in:
parent
d103d7fb34
commit
b933950d57
1 changed files with 1 additions and 1 deletions
2
db.py
2
db.py
|
@ -1312,7 +1312,7 @@ class Brawlhalla(Base, Mini):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
def update(self):
|
def update(self, session=None):
|
||||||
j = requests.get(f"https://api.brawlhalla.com/player/{self.brawlhalla_id}/stats?api_key={config['Brawlhalla']['brawlhalla_api_key']}").json()
|
j = requests.get(f"https://api.brawlhalla.com/player/{self.brawlhalla_id}/stats?api_key={config['Brawlhalla']['brawlhalla_api_key']}").json()
|
||||||
self.name = j["name"]
|
self.name = j["name"]
|
||||||
self.level = j["level"]
|
self.level = j["level"]
|
||||||
|
|
Loading…
Reference in a new issue