mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Recurring Tasks
- Rewrote updateRecurrenceMask, which was hopelessly muddled after the TDB -> TDB2 change. - Modified associated code. - Improved signal to noise ratio in unit tests.
This commit is contained in:
parent
6e8d2ca79c
commit
6e649f3f45
5 changed files with 36 additions and 50 deletions
|
@ -125,7 +125,7 @@ int CmdDelete::execute (std::string& output)
|
|||
{
|
||||
// Update mask in parent.
|
||||
task->setStatus (Task::deleted);
|
||||
updateRecurrenceMask (siblings, *task);
|
||||
updateRecurrenceMask (*task);
|
||||
|
||||
// Don't want a 'delete' to clobber the end date that may have
|
||||
// been written by a 'done' command.
|
||||
|
@ -183,7 +183,6 @@ int CmdDelete::execute (std::string& output)
|
|||
}
|
||||
|
||||
context.tdb2.commit ();
|
||||
|
||||
output = out.str ();
|
||||
return rc;
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ int CmdDone::execute (std::string& output)
|
|||
}
|
||||
}
|
||||
|
||||
updateRecurrenceMask (filtered, *task);
|
||||
updateRecurrenceMask (*task);
|
||||
if (!nagged)
|
||||
nagged = nag (*task);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue