mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Bug
- The _query command emitted this: [ {}, {}, {} ] which is not valid JSON. It should instead be: {}, {}, {}
This commit is contained in:
parent
103bcef6ab
commit
8ed1cc6006
1 changed files with 1 additions and 3 deletions
|
@ -599,7 +599,6 @@ int handleQuery (std::string& outs)
|
||||||
// Note: "limit:" feature not supported.
|
// Note: "limit:" feature not supported.
|
||||||
|
|
||||||
// Compose output.
|
// Compose output.
|
||||||
outs = "[";
|
|
||||||
std::vector <Task>::iterator t;
|
std::vector <Task>::iterator t;
|
||||||
for (t = tasks.begin (); t != tasks.end (); ++t)
|
for (t = tasks.begin (); t != tasks.end (); ++t)
|
||||||
{
|
{
|
||||||
|
@ -609,8 +608,7 @@ int handleQuery (std::string& outs)
|
||||||
outs += t->composeJSON ();
|
outs += t->composeJSON ();
|
||||||
}
|
}
|
||||||
|
|
||||||
outs += "]\n";
|
outs += "\n";
|
||||||
|
|
||||||
context.hooks.trigger ("post-query-command");
|
context.hooks.trigger ("post-query-command");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue