Use Taskchampion to store Taskwarrior data
This replaces the TF2 task files with a TaskChampion replica.
This commit is contained in:
committed by
Dustin J. Mitchell
parent
4b814bc602
commit
5bb9857984
@@ -112,15 +112,17 @@ int CmdExport::execute (std::string& output)
|
||||
}
|
||||
else
|
||||
{
|
||||
// There is a sortOrder, so sorting will take place, which means the initial
|
||||
// order of sequence is ascending.
|
||||
// sort_tasks requires the order array initially be identity
|
||||
for (unsigned int i = 0; i < filtered.size (); ++i)
|
||||
sequence.push_back (i);
|
||||
|
||||
// Sort the tasks.
|
||||
if (sortOrder.size ()) {
|
||||
sort_tasks (filtered, sequence, reportSort);
|
||||
// if no sort order, sort by id
|
||||
if (!sortOrder.size ()) {
|
||||
reportSort = "id";
|
||||
}
|
||||
|
||||
// Sort the tasks.
|
||||
sort_tasks (filtered, sequence, reportSort);
|
||||
}
|
||||
|
||||
// Export == render.
|
||||
|
||||
Reference in New Issue
Block a user