diff --git a/src/commands/CmdExport.cpp b/src/commands/CmdExport.cpp index 829714a02..f3bea3368 100644 --- a/src/commands/CmdExport.cpp +++ b/src/commands/CmdExport.cpp @@ -49,17 +49,9 @@ int CmdExport::execute (std::string& output) { int rc = 0; - // Get all the 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); if (filtered.size () == 0) {