Implement network statistics
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user