Properly swap modal context table and keep scroll position

This commit is contained in:
2022-08-09 07:20:30 +01:00
parent 3e92d17097
commit 83cd5e7ee7
6 changed files with 71 additions and 52 deletions

View File

@@ -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