From 0fda4b060c1c94ce550ae1998e118efea82e61b9 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 16 Jan 2011 01:03:28 -0500 Subject: [PATCH] Bug - _query command used {} instead of [] for task collection. --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index c3c066cae..c89c1f864 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -596,7 +596,7 @@ int handleQuery (std::string& outs) // Note: "limit:" feature not supported. // Compose output. - outs = "{"; + outs = "["; std::vector ::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"); }