diff --git a/src/commands/CmdStats.cpp b/src/commands/CmdStats.cpp index bff2c272b..f83cc5999 100644 --- a/src/commands/CmdStats.cpp +++ b/src/commands/CmdStats.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -79,9 +80,10 @@ int CmdStats::execute (std::string& output) ++backlogCount; // Get all the tasks. + Filter filter; std::vector all = context.tdb2.all_tasks (); std::vector filtered; - filter (all, filtered); + filter.subset (all, filtered); Date now; time_t earliest = time (NULL);