diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 1218ae374..0d0022aa3 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -177,7 +177,6 @@ int CmdCustom::execute (std::string& output) } context.tdb2.commit (); - output = out.str (); return rc; } diff --git a/src/commands/CmdSummary.cpp b/src/commands/CmdSummary.cpp index 87f16a7a7..9e1ef538d 100644 --- a/src/commands/CmdSummary.cpp +++ b/src/commands/CmdSummary.cpp @@ -58,16 +58,12 @@ int CmdSummary::execute (std::string& output) int rc = 0; // Scan the pending tasks. - std::vector tasks; - context.tdb.lock (context.config.getBoolean ("locking")); handleRecurrence (); - context.tdb.load (tasks); - context.tdb.commit (); - context.tdb.unlock (); // Apply filter. std::vector filtered; - filter (tasks, filtered); + filter (filtered); + context.tdb2.commit (); // Generate unique list of project names from all pending tasks. std::map allProjects;