Tweak calendar z-index and uncomment type filters

This commit is contained in:
2022-08-12 20:45:25 +01:00
parent d6f47d0841
commit ddb737fdc6
7 changed files with 24 additions and 21 deletions

View File

@@ -25,13 +25,13 @@ def construct_query(index, net, channel, src, num, size, nicks=None):
"net",
"src",
]
# if index == "int":
# fields.append("mtype")
# for ctype in types:
# extra_should.append({"match": {"mtype": ctype}})
# else:
# for ctype in types:
# extra_should.append({"match": {"type": ctype}})
if index == "int":
fields.append("mtype")
for ctype in types:
extra_should.append({"match": {"mtype": ctype}})
else:
for ctype in types:
extra_should.append({"match": {"type": ctype}})
query = {
"size": size,
"query": {