- Converted 'export' to TDB2.
This commit is contained in:
Paul Beckingham 2011-08-29 21:12:23 -04:00
parent 380aadd76a
commit 5276bfd473

View file

@ -49,17 +49,9 @@ int CmdExport::execute (std::string& output)
{ {
int rc = 0; int rc = 0;
// Get all the tasks.
std::vector <Task> tasks;
context.tdb.lock (context.config.getBoolean ("locking"));
handleRecurrence ();
context.tdb.load (tasks);
context.tdb.commit ();
context.tdb.unlock ();
// Apply filter. // Apply filter.
std::vector <Task> filtered; std::vector <Task> filtered;
filter (tasks, filtered); filter (filtered);
if (filtered.size () == 0) if (filtered.size () == 0)
{ {