diff --git a/migrations/20130307_remove_duff_histories.js b/migrations/20130307_remove_duff_histories.js
new file mode 100644
index 0000000000..e10889e173
--- /dev/null
+++ b/migrations/20130307_remove_duff_histories.js
@@ -0,0 +1,28 @@
+// mongo habitrpg ./node_modules/underscore/underscore.js ./migrations/20130307_remove_duff_histories.js
+/**
+ * Remove duff histories for dailies
+ */
+db.users.find().forEach(function(user){
+
+
+ _.each(user.tasks, function(task, key){
+ // remove task history
+ if (task.type === "daily") {
+ task.history = []
+ }
+ });
+
+ try {
+ db.users.update(
+ {_id:user._id},
+ {$set:
+ {
+ 'tasks' : user.tasks
+ }
+ },
+ {multi:true}
+ );
+ } catch(e) {
+ print(e);
+ }
+})
\ No newline at end of file
diff --git a/src/app/browser.coffee b/src/app/browser.coffee
index fcc32647ee..55a6c9229f 100644
--- a/src/app/browser.coffee
+++ b/src/app/browser.coffee
@@ -178,7 +178,7 @@ setupGrowlNotifications = (model) ->
# unless silent
num = captures - args
rounded = Math.abs(num.toFixed(1))
- if num < 0 and num > -100 # TODO fix hackey negative notification supress
+ if num < 0 and num > -50 # TODO fix hackey negative notification supress
statsNotification " - #{rounded} XP", 'xp'
else if num > 0
statsNotification " + #{rounded} XP", 'xp'
diff --git a/src/app/scoring.coffee b/src/app/scoring.coffee
index 5cc5a8428c..8664509ad5 100644
--- a/src/app/scoring.coffee
+++ b/src/app/scoring.coffee
@@ -220,7 +220,7 @@ cron = (model) ->
batch.set "tasks.#{taskObj.id}.value", newValue
taskObj.history ?= []
- taskObj.history.push { date: +new Date, value: value }
+ taskObj.history.push { date: +new Date, value: newValue || taskObj.value }
batch.set "tasks.#{taskObj.id}.history", taskObj.history
batch.set "tasks.#{taskObj.id}.completed", false
else
@@ -229,7 +229,7 @@ cron = (model) ->
todoTally += absVal
else if type is 'habit' # slowly reset 'onlies' value to 0
if taskObj.up==false or taskObj.down==false
- if Math.abs(taskObj.value) < 0.02
+ if Math.abs(taskObj.value) < 0.1
batch.set "tasks.#{taskObj.id}.value", 0
else
batch.set "tasks.#{taskObj.id}.value", taskObj.value / 2