Skip to content

Commit 2ba82e4

Browse files
committed
Add distinct
1 parent 2e61014 commit 2ba82e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/scores.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ func getCachedScoreboard(scoreboard scoreboardType, md5 string, mods int64) ([]*
740740
// Returns a query to select user scores from non personal best scoreboards.
741741
func getSelectUserScoreboardQuery(limit int, donatorOnly ...bool) string {
742742
query := `
743-
SELECT s.user_id,
743+
SELECT DISTINCT s.user_id,
744744
s.*,
745745
u.id AS User__id,
746746
u.steam_id AS User__steam_id,

0 commit comments

Comments
 (0)