mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 07:21:15 +00:00
missing completeds
This commit is contained in:
parent
54df0c16ff
commit
ec2eac31c0
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ get '/', (page, model, next) ->
|
|||
# 2. restore missing zombie tasks back into list
|
||||
where = {type:type}
|
||||
if type in ['completed', 'todo']
|
||||
where.type = 'todo'
|
||||
where.completed = if type == 'completed' then true else false
|
||||
taskIds = _.pluck( _.where(userObj.tasks, where), 'id')
|
||||
union = _.union userObj[path], taskIds
|
||||
|
|
|
|||
Loading…
Reference in a new issue