from core.lib.threshold import threshold_request def get_irc_stats(): url = "irc/stats" payload = {} stats = threshold_request(url, payload) if not stats: return {} print("tsats", stats) return stats def get_irc_networks(): url = "irc/networks" payload = {} networks = threshold_request(url, payload) if not networks: return {} return networks