hide those with 0 cams in highscore list

This commit is contained in:
2025-08-25 18:29:55 +02:00
parent f2423b34a8
commit 09549aabea

View File

@@ -41,7 +41,7 @@ impl Backend {
WHERE rank <= COALESCE( WHERE rank <= COALESCE(
(SELECT rank FROM ranked_clients ORDER BY rank LIMIT 1 OFFSET 9), (SELECT rank FROM ranked_clients ORDER BY rank LIMIT 1 OFFSET 9),
(SELECT MAX(rank) FROM ranked_clients) (SELECT MAX(rank) FROM ranked_clients)
) ) AND amount > 0
ORDER BY rank, name" ORDER BY rank, name"
) )
.fetch_all(db) .fetch_all(db)