diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 28f4d336..9268b1bb 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -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) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index fc3d170e..8d8ec9bc 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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") diff --git a/copyparty/u2idx.py b/copyparty/u2idx.py index adef5b5a..fdbb1e52 100644 --- a/copyparty/u2idx.py +++ b/copyparty/u2idx.py @@ -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 = ""