diff options
-rw-r--r-- | server/search.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/server/search.py b/server/search.py index 7ddcded..d3d35d5 100644 --- a/server/search.py +++ b/server/search.py @@ -35,7 +35,16 @@ class Search(object): 'min_hosts':self.min_hosts, 'max_hosts':self.max_hosts}) if helpers.is_json_request(): - return helpers.serialize(search_tuples) + search_list = list() + for tuple in search_tuples: + search_list.append({ + 'CAT': tuple['CAT'], + 'PKG': tuple['PKG'], + 'VER': tuple['VER'], + 'REPO': tuple['REPO'], + 'HOSTS': tuple['HOSTS'] + }) + return helpers.serialize(search_list) else: return render.search(search_tuples) |