From 52f3e8f1b21222e0377b9c32f5a6ccda96cf1493 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 12 Aug 2022 23:32:23 +0100 Subject: [PATCH] Begin implementing adding channel limits --- core/lib/context.py | 1 - .../manage/threshold/irc/network/actions.html | 67 +++++++++++++------ core/views/manage/threshold/irc.py | 1 + 3 files changed, 48 insertions(+), 21 deletions(-) diff --git a/core/lib/context.py b/core/lib/context.py index dcc9bea..d67866d 100644 --- a/core/lib/context.py +++ b/core/lib/context.py @@ -10,7 +10,6 @@ def construct_query(index, net, channel, src, num, size, nicks=None): if channel: extra_must.append({"match": {"channel": channel}}) if nicks: - print("NICKS", nicks) for nick in nicks: extra_should2.append({"match": {"nick": nick}}) types = ["msg", "notice", "action", "kick", "topic", "mode"] diff --git a/core/templates/manage/threshold/irc/network/actions.html b/core/templates/manage/threshold/irc/network/actions.html index a9e33d9..667278b 100644 --- a/core/templates/manage/threshold/irc/network/actions.html +++ b/core/templates/manage/threshold/irc/network/actions.html @@ -44,26 +44,53 @@ -
-
-
- - - - -
-
- -
+
+
+ +
+
+ + + + +
+
+ +
+
+
- +
+
+
+
+ + + + +
+
+ +
+
+
+
+
\ No newline at end of file diff --git a/core/views/manage/threshold/irc.py b/core/views/manage/threshold/irc.py index 4810905..1134c41 100644 --- a/core/views/manage/threshold/irc.py +++ b/core/views/manage/threshold/irc.py @@ -59,6 +59,7 @@ class ThresholdIRCNetworkInfo(SuperUserRequiredMixin, View): def get(self, request, net): network = threshold.get_irc_network(net) context = {"network": network} + print("CON", context) return render(request, self.template_name, context)