Properly swap modal context table and keep scroll position
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
from core.lib.opensearch import client, run_main_query
|
||||
from django.conf import settings
|
||||
|
||||
def construct_query(net, channel, src, num, size):
|
||||
# Get the initial query
|
||||
extra_must = []
|
||||
@@ -21,11 +18,21 @@ def construct_query(net, channel, src, num, size):
|
||||
"should": query_should,
|
||||
}
|
||||
},
|
||||
*extra_must
|
||||
*extra_must,
|
||||
]
|
||||
}
|
||||
},
|
||||
"fields": ["nick", "ident", "host", "channel", "ts", "msg", "type", "net", "src"],
|
||||
"fields": [
|
||||
"nick",
|
||||
"ident",
|
||||
"host",
|
||||
"channel",
|
||||
"ts",
|
||||
"msg",
|
||||
"type",
|
||||
"net",
|
||||
"src",
|
||||
],
|
||||
"_source": False,
|
||||
}
|
||||
return query
|
||||
return query
|
||||
|
||||
Reference in New Issue
Block a user