From b933950d57eec1d0826878987178fbabe768939f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 1 Mar 2019 17:30:11 +0100 Subject: [PATCH] First bugfix of the season --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index b407b7b1..0959d3ed 100644 --- a/db.py +++ b/db.py @@ -1312,7 +1312,7 @@ class Brawlhalla(Base, Mini): time.sleep(1) 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() self.name = j["name"] self.level = j["level"]