This commit is contained in:
ed
2021-02-22 03:46:02 +01:00
parent 81d5859588
commit f75c5f2fe5
3 changed files with 7 additions and 4 deletions

View File

@@ -448,12 +448,12 @@ class HttpCli(object):
vbody["hash"] = len(vbody["hash"])
self.log("qj: " + repr(vbody))
hits = idx.fsearch(vols, body)
self.log("qh: " + repr(hits))
self.log("q#: " + repr(hits))
else:
# search by query params
self.log("qj: " + repr(body))
hits = idx.search(vols, body)
self.log("qh: " + str(len(hits)))
self.log("q#: " + str(len(hits)))
r = json.dumps(hits).encode("utf-8")
self.reply(r, mime="application/json")