mirror of
https://github.com/9001/copyparty.git
synced 2026-04-02 22:08:38 +10:00
v0.8.0
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user