- Fixed bug where "task projects" rendered an empty table instead of saying "no projects".
This commit is contained in:
@@ -4,11 +4,11 @@
|
|||||||
1.0.0 (?)
|
1.0.0 (?)
|
||||||
- New movie made, uploaded
|
- New movie made, uploaded
|
||||||
- Bug: assertion fails on mobile for t v
|
- Bug: assertion fails on mobile for t v
|
||||||
- Bug: configure.ac does not properly determine ncurses availability
|
+ Bug: configure.ac does not properly determine ncurses availability
|
||||||
- Bug: when run without arguments, task dumps core on Solaris 10
|
- Bug: when run without arguments, task dumps core on Solaris 10
|
||||||
- Bug: Cannot seem to use the percent character in a task description
|
- Bug: Cannot seem to use the percent character in a task description
|
||||||
- Bug: New installation "task stats" reports newest task 12/31/1969
|
- Bug: New installation "task stats" reports newest task 12/31/1969
|
||||||
- Bug: New installation task projects displays header but no data - should short-circuit
|
+ Bug: New installation task projects displays header but no data - should short-circuit
|
||||||
+ Bug: incorrect color specification in sample .taskrc file
|
+ Bug: incorrect color specification in sample .taskrc file
|
||||||
|
|
||||||
------ reality -----------------------------------
|
------ reality -----------------------------------
|
||||||
|
|||||||
@@ -307,6 +307,8 @@ void handleProjects (const TDB& tdb, T& task, Config& conf)
|
|||||||
unique[task.getAttribute ("project")] += 1;
|
unique[task.getAttribute ("project")] += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unique.size ())
|
||||||
|
{
|
||||||
// Render a list of project names from the map.
|
// Render a list of project names from the map.
|
||||||
Table table;
|
Table table;
|
||||||
table.addColumn ("Project");
|
table.addColumn ("Project");
|
||||||
@@ -331,6 +333,10 @@ void handleProjects (const TDB& tdb, T& task, Config& conf)
|
|||||||
<< (unique.size () == 1 ? " project" : " projects")
|
<< (unique.size () == 1 ? " project" : " projects")
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
std::cout << "No projects."
|
||||||
|
<< std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void handleTags (const TDB& tdb, T& task, Config& conf)
|
void handleTags (const TDB& tdb, T& task, Config& conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user