From 90404c287e8e827f14d017ac83465435e56a1e78 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Aug 2011 00:23:27 -0400 Subject: [PATCH] TDB2 - Converted 'timesheet' command to TDB2. --- src/commands/CmdTimesheet.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 ();