From 8ed1cc60068df82d7a42ed6f73d723bbf299f069 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 21 Jan 2011 11:59:51 -0500 Subject: [PATCH] Bug - The _query command emitted this: [ {}, {}, {} ] which is not valid JSON. It should instead be: {}, {}, {} --- src/command.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index 9c2453f5c..781e05830 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -599,7 +599,6 @@ int handleQuery (std::string& outs) // Note: "limit:" feature not supported. // Compose output. - outs = "["; std::vector ::iterator t; for (t = tasks.begin (); t != tasks.end (); ++t) { @@ -609,8 +608,7 @@ int handleQuery (std::string& outs) outs += t->composeJSON (); } - outs += "]\n"; - + outs += "\n"; context.hooks.trigger ("post-query-command"); }