only consider stable ratings in ranking calculation
This commit is contained in:
parent
bffa53ba10
commit
ccd7703883
|
@ -18,7 +18,7 @@ private[user] final class Ranking(ttl: Duration) {
|
|||
|
||||
private def compute: Fu[Map[String, Int]] =
|
||||
$primitive(
|
||||
UserRepo.enabledSelect ++ Json.obj("rating" -> $gt(Glicko.default.intRating)),
|
||||
UserRepo.stableGoodLadSelect ++ Json.obj("rating" -> $gt(Glicko.default.intRating)),
|
||||
"_id",
|
||||
_ sort UserRepo.sortRatingDesc
|
||||
)(_.asOpt[String]) map { _.zipWithIndex.map(x => x._1 -> (x._2 + 1)).toMap }
|
||||
|
|
Loading…
Reference in a new issue