TDB2
- Converted 'timesheet' command to TDB2.
This commit is contained in:
@@ -51,16 +51,10 @@ int CmdTimesheet::execute (std::string& output)
|
|||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
// Scan the pending tasks.
|
// Scan the pending tasks.
|
||||||
std::vector <Task> tasks;
|
|
||||||
context.tdb.lock (context.config.getBoolean ("locking"));
|
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
context.tdb.load (tasks);
|
|
||||||
context.tdb.commit ();
|
|
||||||
context.tdb.unlock ();
|
|
||||||
|
|
||||||
// Apply filter.
|
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (tasks, filtered);
|
filter (filtered);
|
||||||
|
context.tdb2.commit ();
|
||||||
|
|
||||||
// Just do this once.
|
// Just do this once.
|
||||||
int width = context.getWidth ();
|
int width = context.getWidth ();
|
||||||
|
|||||||
Reference in New Issue
Block a user