Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Fix issue #147.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored Oct 22, 2019
1 parent fe6351a commit ec54b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get5/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ec54b1d

Please sign in to comment.