mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - next
- The next report is now a custom report. There is also a nasty piece of logic that lets the next report exist as a custom report, and also with it's own handleReportNext function to prep and filter the tasks, then hand off to runCustomReport.
This commit is contained in:
parent
f31f068322
commit
a32263e7ea
7 changed files with 134 additions and 199 deletions
16
src/TDB.cpp
16
src/TDB.cpp
|
@ -382,19 +382,6 @@ int TDB::commit ()
|
|||
return quantity;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO -> FF4
|
||||
void TDB::upgrade ()
|
||||
{
|
||||
// TODO Read all pending
|
||||
// TODO Write out all pending
|
||||
|
||||
// TODO Read all completed
|
||||
// TODO Write out all completed
|
||||
|
||||
throw std::string ("unimplemented TDB::upgrade");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Scans the pending tasks for any that are completed or deleted, and if so,
|
||||
// moves them to the completed.data file. Returns a count of tasks moved.
|
||||
|
@ -435,7 +422,10 @@ int TDB::gc ()
|
|||
// Wake up tasks that are waiting.
|
||||
Date wait_date (::atoi (task->get ("wait").c_str ()));
|
||||
if (now > wait_date)
|
||||
{
|
||||
task->setStatus (Task::pending);
|
||||
task->remove ("wait");
|
||||
}
|
||||
|
||||
still_pending.push_back (*task);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue