diff --git a/src/commands/CmdTimesheet.cpp b/src/commands/CmdTimesheet.cpp index 866372a0c..fe6003f2b 100644 --- a/src/commands/CmdTimesheet.cpp +++ b/src/commands/CmdTimesheet.cpp @@ -51,16 +51,10 @@ int CmdTimesheet::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 (); // Just do this once. int width = context.getWidth ();