Tweak calendar z-index and uncomment type filters
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user