mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdStats
- Converted from A3 to Filter.
This commit is contained in:
parent
6cb64e370e
commit
7ac1a7d5e5
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue