From db57571ee6caf451f3efde6a60c9e9df6cba7663 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 12 Aug 2013 20:07:33 -0400 Subject: [PATCH] HUGE hotfix - don't process todo / daily scoring if that checkbox didn't come from the local model. This is the fix to the negative xp / gp bug!! --- src/app/tasks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tasks.coffee b/src/app/tasks.coffee index 4403bb027b..945eb1d784 100644 --- a/src/app/tasks.coffee +++ b/src/app/tasks.coffee @@ -101,7 +101,7 @@ module.exports.app = (appExports, model) -> the above function doesn't work so we need a listener here ### user.on 'set', 'tasks.*.completed', (i, completed, previous, isLocal, passed) -> - return if passed?.cron # Don't do this stuff on cron + return if !isLocal or passed?.cron # Don't do this stuff on cron direction = if completed then 'up' else 'down' misc.score(model, i, direction, true)