fix: unfinished todos count (#2306)
This commit is contained in:
@@ -822,7 +822,7 @@ function M._stream(opts)
|
|||||||
if opts.get_todos then
|
if opts.get_todos then
|
||||||
local todos = opts.get_todos()
|
local todos = opts.get_todos()
|
||||||
unfinished_todos = vim.tbl_filter(
|
unfinished_todos = vim.tbl_filter(
|
||||||
function(todo) return todo.status ~= "done" or todo.status ~= "cancelled" end,
|
function(todo) return todo.status ~= "done" and todo.status ~= "cancelled" end,
|
||||||
todos
|
todos
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user