-
{% endblock %}
diff --git a/core/views/dynamic/manage/threshold/irc.py b/core/views/dynamic/manage/threshold/irc.py
index fed2fc9..288087f 100644
--- a/core/views/dynamic/manage/threshold/irc.py
+++ b/core/views/dynamic/manage/threshold/irc.py
@@ -1,12 +1,13 @@
-from django.views import View
from django.shortcuts import render
+from django.views import View
+
+from core.lib.manage.threshold import get_irc_networks, get_irc_stats
from core.views.manage.permissions import SuperUserRequiredMixin
-from core.lib.manage.threshold import get_irc_stats, get_irc_networks
+
class ThresholdIRCStats(SuperUserRequiredMixin, View):
stats_template = "dynamic/manage/threshold/irc/stats.html"
-
def post(self, request):
stats = get_irc_stats()
context = {"stats": stats}
@@ -16,8 +17,7 @@ class ThresholdIRCStats(SuperUserRequiredMixin, View):
class ThresholdIRCNetworks(SuperUserRequiredMixin, View):
stats_template = "dynamic/manage/threshold/irc/networks.html"
-
def post(self, request):
stats = get_irc_networks()
context = {"networks": stats}
- return render(request, self.stats_template, context)
\ No newline at end of file
+ return render(request, self.stats_template, context)