mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Fixed typo
This commit is contained in:
parent
b9569a310a
commit
9742923ad6
1 changed files with 5 additions and 6 deletions
|
@ -173,17 +173,16 @@ updateScores = (taskObject,callback) ->
|
|||
callback err, newScores
|
||||
|
||||
|
||||
return
|
||||
|
||||
retrieveOldScoreMetrics = (sessionID, callback) ->
|
||||
LevelSession.findOne {"_id":sessionID}, (err, session) ->
|
||||
return callback err, {"error":"There was an error retrieving the session."} if err?
|
||||
|
||||
defaultScore = (25 - 1.8*(25/3))
|
||||
defaultStandardDeviation = 25/3
|
||||
oldScoreObject =
|
||||
"standardDeviation":session.standardDeviation ? 25/3
|
||||
"standardDeviation":session.standardDeviation ? defaultStandardDeviation
|
||||
"meanStrength":session.meanStrength ? 25
|
||||
"totalScore":session.totalScore ? 25 - 1.8*(25/3)
|
||||
"id" = sessionID
|
||||
"totalScore":session.totalScore ? defaultScore
|
||||
"id": sessionID
|
||||
|
||||
callback err, oldScoreObject
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue