ci: format

This commit is contained in:
Barrett Ruth 2026-03-08 20:36:54 -04:00
parent ec1d4c6092
commit 53db05e6b2
2 changed files with 11 additions and 3 deletions

View file

@ -1088,7 +1088,13 @@ function M.archive(arg)
return
end
confirm(
'Archive ' .. count .. ' task' .. (count == 1 and '' or 's') .. ' completed/deleted more than ' .. days .. 'd ago?',
'Archive '
.. count
.. ' task'
.. (count == 1 and '' or 's')
.. ' completed/deleted more than '
.. days
.. 'd ago?',
function()
local kept = {}
for _, task in ipairs(tasks) do

View file

@ -679,11 +679,13 @@ function M.parse_duration_to_days(s)
end
n = s:match('^(%d+)w$')
if n then
return tonumber(n) --[[@as integer]] * 7
return tonumber(n) --[[@as integer]]
* 7
end
n = s:match('^(%d+)m$')
if n then
return tonumber(n) --[[@as integer]] * 30
return tonumber(n) --[[@as integer]]
* 30
end
n = s:match('^(%d+)$')
if n then