make TDB2.pending/completed non-public
References to methods on these fields are replaced with methods on TDB2, several of which already existed.
This commit is contained in:
committed by
Tomas Babej
parent
4ebd0ffb39
commit
271d06cd9c
@@ -60,10 +60,10 @@ int CmdProjects::execute (std::string& output)
|
||||
// Get all the tasks.
|
||||
handleUntil ();
|
||||
handleRecurrence ();
|
||||
auto tasks = Context::getContext ().tdb2.pending.get_tasks ();
|
||||
auto tasks = Context::getContext ().tdb2.pending_tasks ();
|
||||
|
||||
if (Context::getContext ().config.getBoolean ("list.all.projects"))
|
||||
for (auto& task : Context::getContext ().tdb2.completed.get_tasks ())
|
||||
for (auto& task : Context::getContext ().tdb2.completed_tasks ())
|
||||
tasks.push_back (task);
|
||||
|
||||
// Apply the filter.
|
||||
@@ -172,10 +172,10 @@ int CmdCompletionProjects::execute (std::string& output)
|
||||
// Get all the tasks.
|
||||
handleUntil ();
|
||||
handleRecurrence ();
|
||||
auto tasks = Context::getContext ().tdb2.pending.get_tasks ();
|
||||
auto tasks = Context::getContext ().tdb2.pending_tasks ();
|
||||
|
||||
if (Context::getContext ().config.getBoolean ("list.all.projects"))
|
||||
for (auto& task : Context::getContext ().tdb2.completed.get_tasks ())
|
||||
for (auto& task : Context::getContext ().tdb2.completed_tasks ())
|
||||
tasks.push_back (task);
|
||||
|
||||
// Apply the filter.
|
||||
|
||||
Reference in New Issue
Block a user