TW-1487
- TW-1487 Task export exports some numeric attributes as strings (thanks to
Tomas Babej).
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
- TW-1484 The 'history' and 'ghistory' reports do not obey rc.color.label.
|
- TW-1484 The 'history' and 'ghistory' reports do not obey rc.color.label.
|
||||||
- TW-1486 task wait shows completed tasks which has a wait attribute (thanks to
|
- TW-1486 task wait shows completed tasks which has a wait attribute (thanks to
|
||||||
Sujeevan Vijayakumaran).
|
Sujeevan Vijayakumaran).
|
||||||
|
- TW-1487 Task export exports some numeric attributes as strings (thanks to
|
||||||
|
Tomas Babej).
|
||||||
- TW-1492 compiling v2.4.0 using musl(libc) (thanks to V.Krishn).
|
- TW-1492 compiling v2.4.0 using musl(libc) (thanks to V.Krishn).
|
||||||
- TW-1495 German translation for taskwarrior (thanks to Jens Erat).
|
- TW-1495 German translation for taskwarrior (thanks to Jens Erat).
|
||||||
- TW-1498 Filtering for presence of UDA matches all tasks (thanks to Ralph
|
- TW-1498 Filtering for presence of UDA matches all tasks (thanks to Ralph
|
||||||
|
|||||||
17
src/Task.cpp
17
src/Task.cpp
@@ -829,6 +829,16 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
|||||||
++attributes_written;
|
++attributes_written;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (type == "numeric")
|
||||||
|
{
|
||||||
|
out << "\""
|
||||||
|
<< i->first
|
||||||
|
<< "\":"
|
||||||
|
<< i->second;
|
||||||
|
|
||||||
|
++attributes_written;
|
||||||
|
}
|
||||||
|
|
||||||
// Tags are converted to an array.
|
// Tags are converted to an array.
|
||||||
else if (i->first == "tags")
|
else if (i->first == "tags")
|
||||||
{
|
{
|
||||||
@@ -847,6 +857,8 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
out << "]";
|
out << "]";
|
||||||
|
|
||||||
|
++attributes_written;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Everything else is a quoted value.
|
// Everything else is a quoted value.
|
||||||
@@ -894,9 +906,8 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
|||||||
// Include urgency.
|
// Include urgency.
|
||||||
if (decorate)
|
if (decorate)
|
||||||
out << ","
|
out << ","
|
||||||
<< "\"urgency\":\""
|
<< "\"urgency\":"
|
||||||
<< urgency_c ()
|
<< urgency_c ();
|
||||||
<<"\"";
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
out << "}";
|
out << "}";
|
||||||
|
|||||||
Reference in New Issue
Block a user