- _query command used {} instead of [] for task collection.
This commit is contained in:
Paul Beckingham 2011-01-16 01:03:28 -05:00
parent 55de71feca
commit 0fda4b060c

View file

@ -596,7 +596,7 @@ int handleQuery (std::string& outs)
// Note: "limit:" feature not supported.
// Compose output.
outs = "{";
outs = "[";
std::vector <Task>::iterator t;
for (t = tasks.begin (); t != tasks.end (); ++t)
{
@ -606,7 +606,7 @@ int handleQuery (std::string& outs)
outs += t->composeJSON ();
}
outs += "}\n";
outs += "]\n";
context.hooks.trigger ("post-query-command");
}