When creating new recurrences, put them in the TodoToday state, not Todo.
This commit is contained in:
parent
661d5959c6
commit
34ce2b61b9
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.23.4"
|
||||
version = "4.24.0"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user