diff options
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc index e4eef741..76546528 100644 --- a/src/report.cc +++ b/src/report.cc @@ -37,6 +37,7 @@ #include "iterators.h" #include "filters.h" #include "precmd.h" +#include "stats.h" #include "generate.h" #include "derive.h" #include "emacs.h" @@ -728,8 +729,9 @@ expr_t::ptr_op_t report_t::lookup(const string& name) case 's': if (is_eq(q, "stats") || is_eq(q, "stat")) - return WRAP_FUNCTOR(reporter<>(new gather_statistics(*this), *this)); - else if (is_eq(q, "server") && maybe_import("ledger.server")) + return WRAP_FUNCTOR(report_statistics); + else + if (is_eq(q, "server") && maybe_import("ledger.server")) return session.lookup(string(CMD_PREFIX) + "server"); break; } |