Bug
- _query command used {} instead of [] for task collection.
This commit is contained in:
@@ -596,7 +596,7 @@ int handleQuery (std::string& outs)
|
|||||||
// Note: "limit:" feature not supported.
|
// Note: "limit:" feature not supported.
|
||||||
|
|
||||||
// Compose output.
|
// Compose output.
|
||||||
outs = "{";
|
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)
|
||||||
{
|
{
|
||||||
@@ -606,7 +606,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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user