1
Fork 0
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:
Steffo 2019-03-01 17:30:11 +01:00
parent d103d7fb34
commit b933950d57

2
db.py
View file

@ -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"]