only select users with glicko RD < 100 for top perfs

This commit is contained in:
Thibault Duplessis 2014-02-01 14:20:37 +01:00
parent 6246e0c4df
commit 302dffbd43
2 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,9 @@ trait UserRepo {
def topSlow = topPerf("slow") _
def topPerf(perf: String)(nb: Int): Fu[List[User]] =
$find(goodLadQuery sort ($sort desc s"perfs.$perf.gl.r"), nb)
$find($query(
goodLadSelect ++ Json.obj(s"perfs.$perf.gl.d" -> $lt(100))
) sort ($sort desc s"perfs.$perf.gl.r"), nb)
def topNbGame(nb: Int): Fu[List[User]] =
$find(goodLadQuery sort ($sort desc "count.game"), nb)

4
todo
View file

@ -113,9 +113,7 @@ SVG chess sets http://chesstempo.com/chess-tactics.html
show analysis details, blur % in cheat table and reports
ban only latest IP
give AI levels ratings
http://en.lichess.org/@/JoSopinka in top slow with only 4 slow games (should index more perf deviations)
show badge on left or right only
mod close accounts/teams
mod close teams
infra