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": {

View File

@@ -204,8 +204,9 @@ def send_irc_message(net, num, channel, msg, nick=None):
messaged = threshold_request(url, payload, method="PUT")
return messaged
def get_irc_nick(net, num):
url = f"irc/nick/{net}/{num}"
payload = {}
nick = threshold_request(url, payload, method="GET")
return nick
return nick