Reformat IRC list getter

This commit is contained in:
Mark Veidemanis 2022-08-13 13:32:03 +01:00
parent ad9276c071
commit cf9da35df7
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 30 additions and 28 deletions

View File

@ -23,6 +23,9 @@ from django.views.generic import TemplateView
from core.api.views.threshold import ThresholdChans, ThresholdOnline, ThresholdUsers from core.api.views.threshold import ThresholdChans, ThresholdOnline, ThresholdUsers
from core.views import About, Billing, Cancel, Order, Portal, Signup from core.views import About, Billing, Cancel, Order, Portal, Signup
from core.views.callbacks import Callback from core.views.callbacks import Callback
from core.views.manage.threshold.irc import (
ThresholdIRCNetworkList, # Actions and just get list output
)
from core.views.manage.threshold.irc import ( from core.views.manage.threshold.irc import (
ThresholdIRCActions, ThresholdIRCActions,
ThresholdIRCActionsAddNetwork, ThresholdIRCActionsAddNetwork,
@ -30,7 +33,6 @@ from core.views.manage.threshold.irc import (
ThresholdIRCAliasesEdit, ThresholdIRCAliasesEdit,
ThresholdIRCNetworkActions, ThresholdIRCNetworkActions,
ThresholdIRCNetworkActionsAuto, ThresholdIRCNetworkActionsAuto,
ThresholdIRCNetworkList, # Actions and just get list output
ThresholdIRCNetworkActionsRelay, ThresholdIRCNetworkActionsRelay,
ThresholdIRCNetworkChannels, ThresholdIRCNetworkChannels,
ThresholdIRCNetworkDel, ThresholdIRCNetworkDel,

View File

@ -211,9 +211,9 @@ def get_irc_nick(net, num):
nick = threshold_request(url, payload, method="GET") nick = threshold_request(url, payload, method="GET")
return nick return nick
def get_irc_list_info(net): def get_irc_list_info(net):
url = f"irc/list/{net}" url = f"irc/list/{net}"
payload = {} payload = {}
listinfo = threshold_request(url, payload, method="GET") listinfo = threshold_request(url, payload, method="GET")
print("LISTINFO", listinfo)
return listinfo return listinfo

View File

@ -24,4 +24,4 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div> </div>