mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Fix matching project name during urgency calculation
This commit is contained in:
parent
9c2affa0cb
commit
af6f2b55ec
2 changed files with 10 additions and 2 deletions
|
@ -468,8 +468,12 @@ int CmdInfo::execute (std::string& output)
|
|||
(end = var.first.find (".coefficient")) != std::string::npos)
|
||||
{
|
||||
auto project = var.first.substr (21, end - 21);
|
||||
if (task.get ("project").find (project) == 0)
|
||||
const std::string taskProjectName = task.get("project");
|
||||
if (taskProjectName == project ||
|
||||
taskProjectName.find(project + '.') == 0)
|
||||
{
|
||||
urgencyTerm (urgencyDetails, "PROJECT " + project, 1.0, var.second);
|
||||
}
|
||||
}
|
||||
|
||||
// urgency.user.tag.<tag>.coefficient
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue