From 470dfb7578be0ca32a6b20a1baa176d4148ed9b3 Mon Sep 17 00:00:00 2001 From: nbarlowATI Date: Fri, 15 Sep 2023 17:59:07 +0100 Subject: [PATCH] pass dbsession argument to get_player AIrsenal 1.7.5 --- airsenal/framework/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airsenal/framework/player.py b/airsenal/framework/player.py index 096ccf76..07546c15 100644 --- a/airsenal/framework/player.py +++ b/airsenal/framework/player.py @@ -68,5 +68,5 @@ def update_team(self, gameweek): update team info for player (in case they were transferred since being added to a squad) """ - pdata = get_player(self.player_id) + pdata = get_player(self.player_id, dbsession=self.dbsession) self.team = pdata.team(self.season, gameweek)