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

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

View File

@ -1,6 +1,6 @@
# Package
version = "4.23.4"
version = "4.24.0"
author = "Jonathan Bernard"
description = "Personal issue tracker."
license = "MIT"

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)

View File

@ -1,4 +1,4 @@
const PIT_VERSION* = "4.23.4"
const PIT_VERSION* = "4.24.0"
const USAGE* = """Usage:
pit ( new | add) <summary> [<state>] [options]