Revert auto-clearing completed to-dos, instead we'll hide stale completeds from our angular app

This commit is contained in:
Tyler Renelle
2014-01-14 17:46:08 -07:00
parent d822cdc9eb
commit 3e290b4734
4 changed files with 1 additions and 32 deletions
-3
View File
@@ -1136,9 +1136,6 @@ api.wrap = (user, main=true) ->
user.stats.mp += _.max([10,.1 * user._statsComputed.maxMP])
user.stats.mp = user._statsComputed.maxMP if user.stats.mp > user._statsComputed.maxMP
user.todos = _.where user.todos, (t) ->
!t.completed or moment(t.created).isAfter(moment().subtract('days',3))
# User is resting at the inn. Used to be we un-checked each daily without performing calculation (see commits before fb29e35)
# but to prevent abusing the inn (http://goo.gl/GDb9x) we now do *not* calculate dailies, and simply set lastCron to today
if user.preferences.sleep is true