When creating new recurrences, put them in the TodoToday state, not Todo.

This commit is contained in:
2023-07-06 08:07:22 -05:00
parent 661d5959c6
commit 34ce2b61b9
3 changed files with 3 additions and 3 deletions

View File

@@ -444,7 +444,7 @@ when isMainModule:
issue["completed"] = getTime().local.formatIso8601
if issue.hasProp("recurrence") and issue.getRecurrence.isSome:
let nextIssue = ctx.cfg.tasksDir.nextRecurrence(issue.getRecurrence.get, issue)
ctx.cfg.tasksDir.store(nextIssue, Todo)
ctx.cfg.tasksDir.store(nextIssue, TodoToday)
info "created the next recurrence:"
stdout.writeLine formatIssue(nextIssue)