diff --git a/get5/match.py b/get5/match.py index 9cc0791..33a6134 100755 --- a/get5/match.py +++ b/get5/match.py @@ -698,8 +698,8 @@ def check_private_or_public(user, match, team1, team2): if not (user.id == match.user_id) or (config_setting( 'ADMINS_ACCESS_ALL_MATCHES') and util.is_admin(user)) or util.is_super_admin(user): isPlayer = False - playerstats_steam = PlayerStats.query(PlayerStats.steam_id).filter_by( - match_id=match.id) + playerstats_steam = [r.steam_id for r in PlayerStats.query.filter( + PlayerStats.match_id==match.id)] playerList = list(set(team1.auths + team2.auths + playerstats_steam)) for player in playerList: if user.steam_id == player: