Skip to content

Commit

Permalink
correct player key
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Sep 23, 2024
1 parent d38205d commit e634b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ranked/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def global_leaderboard(request):
global_scores = []

for player in players:
# Fetch PlayerElo instances for the player without time filtering
player_game_elos = PlayerElo.objects.filter(player=player).select_related('game_mode')
# Corrected the filter to use the related User instance
player_game_elos = PlayerElo.objects.filter(player=player.player).select_related('game_mode')

if not player_game_elos.exists():
continue
Expand Down

0 comments on commit e634b72

Please sign in to comment.