CmdStats
- Converted from A3 to Filter.
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include <ViewText.h>
|
#include <ViewText.h>
|
||||||
#include <OldDuration.h>
|
#include <OldDuration.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
|
#include <Filter.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
@@ -79,9 +80,10 @@ int CmdStats::execute (std::string& output)
|
|||||||
++backlogCount;
|
++backlogCount;
|
||||||
|
|
||||||
// Get all the tasks.
|
// Get all the tasks.
|
||||||
|
Filter filter;
|
||||||
std::vector <Task> all = context.tdb2.all_tasks ();
|
std::vector <Task> all = context.tdb2.all_tasks ();
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (all, filtered);
|
filter.subset (all, filtered);
|
||||||
|
|
||||||
Date now;
|
Date now;
|
||||||
time_t earliest = time (NULL);
|
time_t earliest = time (NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user