auto evaluation adjustments
This commit is contained in:
parent
d5cd8c3bc3
commit
92fc7ff244
|
@ -17,7 +17,7 @@ final class Evaluator(
|
|||
script: String,
|
||||
reporter: ActorSelection) {
|
||||
|
||||
val autoRatingThreshold = 1800
|
||||
val autoRatingThreshold = 1700
|
||||
val autoDeviationThreshold = 150
|
||||
|
||||
def findOrGenerate(user: User, deep: Boolean): Fu[Option[Evaluation]] = find(user) flatMap {
|
||||
|
|
|
@ -86,7 +86,7 @@ trait UserRepo {
|
|||
def setProfile(id: ID, profile: Profile): Funit =
|
||||
$update($select(id), $setBson("profile" -> Profile.tube.handler.write(profile)))
|
||||
|
||||
def setEvaluated(id: ID, v: Boolean): Funit = $update.field($select(id), "evaluated", v)
|
||||
def setEvaluated(id: ID, v: Boolean): Funit = $update.field(id, "evaluated", v)
|
||||
def isEvaluated(id: ID): Fu[Boolean] =
|
||||
$primitive.one($select(id), "evaluated")(_.asOpt[Boolean]) map (~_)
|
||||
|
||||
|
|
Loading…
Reference in a new issue