This commit is contained in:
ed 2021-06-01 03:11:02 +02:00
parent 2eaae2b66a
commit 49ffec5320
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
# coding: utf-8
VERSION = (0, 11, 2)
VERSION = (0, 11, 3)
CODENAME = "the grid"
BUILD_DT = (2021, 6, 1)

View file

@ -120,16 +120,16 @@ class U2idx(object):
elif v == "name":
v = "up.fn"
elif v == "tags":
v = "mt.v"
elif ptn_mt.match(v):
elif v == "tags" or ptn_mt.match(v):
mt_ctr += 1
mt_keycmp2 = "mt{}.w".format(mt_ctr)
joins += "inner join mt mt{} on {} = {} ".format(
mt_ctr, mt_keycmp, mt_keycmp2
)
v = "mt{0}.k = '{1}' and mt{0}.v".format(mt_ctr, v)
if v == "tags":
v = "mt{0}.v".format(mt_ctr)
else:
v = "mt{0}.k = '{1}' and mt{0}.v".format(mt_ctr, v)
else:
raise Pebkac(400, "invalid key [" + v + "]")