mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Some notes about removing poormanscron, removing window.model = model
This commit is contained in:
parent
e49f97615b
commit
40fd835e44
1 changed files with 4 additions and 6 deletions
|
|
@ -92,11 +92,12 @@ getRoom = (page, model, userId) ->
|
|||
# http://tibia.wikia.com/wiki/Formula
|
||||
model.fn '_tnl', '_user.lvl', (lvl) -> 50 * Math.pow(lvl, 2) - 150 * lvl + 200
|
||||
|
||||
#TODO remove when cron implemented
|
||||
poormanscron(model)
|
||||
|
||||
page.render()
|
||||
|
||||
#TODO: Implement this for cron
|
||||
#TODO: remove when cron implemented
|
||||
poormanscron = (model) ->
|
||||
lastCron = model.get('_user.lastCron')
|
||||
lastCron = if lastCron then (new Date(lastCron)) else new Date()
|
||||
|
|
@ -110,7 +111,8 @@ poormanscron = (model) ->
|
|||
|
||||
# Note: Set 12am daily cron for this
|
||||
# At end of day, add value to all incomplete Daily & Todo tasks (further incentive)
|
||||
# For incomplete Dailys, deduct experience
|
||||
# For incomplete Dailys, deduct experience
|
||||
#TODO: remove from exports when cron implemented
|
||||
endOfDayTally = (model) ->
|
||||
# users = model.at('users') #TODO this isn't working, iterate over all users
|
||||
# for user in users
|
||||
|
|
@ -172,10 +174,6 @@ view.fn "silver", (num) ->
|
|||
## CONTROLLER FUNCTIONS ##
|
||||
|
||||
ready (model) ->
|
||||
|
||||
#TODO remove this!!!!! dangerous temporary debugging helper
|
||||
window.model = model
|
||||
|
||||
$('.task-notes').popover()
|
||||
|
||||
model.set('_hideCompleted', true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue