From 482965fe0f6c118b78b94d4971ee8154fa2dbb80 Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Wed, 21 May 2014 16:58:51 -0700 Subject: [PATCH] No reset of scores when session resubmit --- server/queues/scoring.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/queues/scoring.coffee b/server/queues/scoring.coffee index de7460414..d2d915536 100644 --- a/server/queues/scoring.coffee +++ b/server/queues/scoring.coffee @@ -292,7 +292,7 @@ updateSessionToSubmit = (transpiledCode, sessionToUpdate, callback) -> submitDate: new Date() meanStrength: 25 standardDeviation: 25/3 - totalScore: 10 + #totalScore: 10 #this should be a fun experiment numberOfWinsAndTies: 0 numberOfLosses: 0 isRanking: true @@ -495,7 +495,6 @@ deleteQueueMessage = (callback) -> fetchLevelSession = (callback) -> findParameters = _id: @clientResponseObject.originalSessionID - console.log "Find parameters are",findParameters query = LevelSession .findOne(findParameters) @@ -591,7 +590,6 @@ updateMatchesInSession = (matchObject, sessionID, callback) -> opponentsArray = _.toArray opponentsClone currentMatchObject.opponents = opponentsArray LevelSession.findOne {"_id": sessionID}, (err, session) -> - console.log "Updated session #{sessionID}" session = session.toObject() currentMatchObject.playtime = session.playtime ? 0 sessionUpdateObject =