mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
v0.8.0
This commit is contained in:
parent
81d5859588
commit
f75c5f2fe5
|
@ -1,8 +1,8 @@
|
|||
# coding: utf-8
|
||||
|
||||
VERSION = (0, 7, 7)
|
||||
VERSION = (0, 8, 0)
|
||||
CODENAME = "keeping track"
|
||||
BUILD_DT = (2021, 2, 14)
|
||||
BUILD_DT = (2021, 2, 22)
|
||||
|
||||
S_VERSION = ".".join(map(str, VERSION))
|
||||
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -131,6 +131,9 @@ def _conv_txt(q, body, k, sql):
|
|||
inv = "not"
|
||||
v = v[1:]
|
||||
|
||||
if not v:
|
||||
continue
|
||||
|
||||
head = "'%'||"
|
||||
if v.startswith("^"):
|
||||
head = ""
|
||||
|
|
Loading…
Reference in a new issue