Skip to content

Commit

Permalink
pass dbsession argument to get_player
Browse files Browse the repository at this point in the history
AIrsenal 1.7.5
  • Loading branch information
nbarlowATI authored and jack89roberts committed Oct 1, 2023
1 parent 7213a95 commit 470dfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airsenal/framework/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 470dfb7

Please sign in to comment.