Files
worldcup/lib
valknar 0d415baf95 fix: exclude own goals from player goal counts and hat-trick detection
COUNT(*) was counting own goals in the player's goal tally. Changed to
SUM(CASE WHEN NOT is_own_goal THEN 1 ELSE 0 END) in all five places:
topScorers, player, search players, Tournament.topScorers, and hatTricks.
The HAVING clause for hat-tricks is also corrected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 08:16:41 +02:00
..