Skip to content

Commit

Permalink
Add distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
Swan committed Nov 24, 2024
1 parent 2e61014 commit 2ba82e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/scores.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ func getCachedScoreboard(scoreboard scoreboardType, md5 string, mods int64) ([]*
// Returns a query to select user scores from non personal best scoreboards.
func getSelectUserScoreboardQuery(limit int, donatorOnly ...bool) string {
query := `
SELECT s.user_id,
SELECT DISTINCT s.user_id,
s.*,
u.id AS User__id,
u.steam_id AS User__steam_id,
Expand Down

0 comments on commit 2ba82e4

Please sign in to comment.