Implement network statistics

This commit is contained in:
2022-07-25 19:08:28 +01:00
parent 1c4d87e662
commit c993bb9c6e
5 changed files with 108 additions and 114 deletions

View File

@@ -1,5 +1,6 @@
from core.lib.threshold import threshold_request
def get_irc_stats():
url = "irc/stats"
payload = {}
@@ -8,10 +9,11 @@ def get_irc_stats():
return {}
return stats
def get_irc_networks():
url = "irc/networks"
payload = {}
networks = threshold_request(url, payload)
if not networks:
return {}
return networks
return networks