CmdSummary

- Converted from A3 to Filter.
This commit is contained in:
Paul Beckingham 2014-05-24 15:18:53 -04:00
parent 7ac1a7d5e5
commit 644b1ae7ef

View file

@ -29,6 +29,7 @@
#include <sstream> #include <sstream>
#include <stdlib.h> #include <stdlib.h>
#include <Context.h> #include <Context.h>
#include <Filter.h>
#include <ViewText.h> #include <ViewText.h>
#include <OldDuration.h> #include <OldDuration.h>
#include <text.h> #include <text.h>
@ -57,12 +58,11 @@ int CmdSummary::execute (std::string& output)
{ {
int rc = 0; int rc = 0;
// Scan the pending tasks.
handleRecurrence ();
// Apply filter. // Apply filter.
handleRecurrence ();
Filter filter;
std::vector <Task> filtered; std::vector <Task> filtered;
filter (filtered); filter.subset (filtered);
context.tdb2.commit (); context.tdb2.commit ();
// Generate unique list of project names from all pending tasks. // Generate unique list of project names from all pending tasks.