mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Urgency: Add backwards compatible handling of next coefficient
This commit is contained in:
parent
6b83945a21
commit
a08d354971
1 changed files with 5 additions and 0 deletions
|
@ -661,6 +661,11 @@ const int Config::getInteger (const std::string& key)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
const double Config::getReal (const std::string& key)
|
||||
{
|
||||
//NOTE: Backwards compatible handling of next coefficient.
|
||||
//TODO: Remove.
|
||||
if (key == "urgency.user.tag.next.coefficient" and has("urgency.next.coefficient"))
|
||||
return getReal("urgency.next.coefficient");
|
||||
|
||||
if ((*this).find (key) != (*this).end ())
|
||||
return strtod ((*this)[key].c_str (), NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue