ci: format
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run

This commit is contained in:
Barrett Ruth 2026-03-12 21:01:11 -04:00
parent c04057dd9f
commit 0b0b64fc3d
3 changed files with 25 additions and 10 deletions

View file

@ -1192,7 +1192,10 @@ function M.archive(arg)
log.debug(('archive: days=%d cutoff=%s total_tasks=%d'):format(days, cutoff, #tasks))
local count = 0
for _, task in ipairs(tasks) do
if (task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled') and task['end'] then
if
(task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled')
and task['end']
then
if task['end'] < cutoff then
count = count + 1
end
@ -1213,7 +1216,10 @@ function M.archive(arg)
function()
local kept = {}
for _, task in ipairs(tasks) do
if (task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled') and task['end'] then
if
(task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled')
and task['end']
then
if task['end'] < cutoff then
goto skip
end