From 956cc8607255aae1c037ce3656a244cdcda54c0d Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 20 Sep 2019 13:34:55 +0100 Subject: [PATCH] 'path' is now 'args' --- modules/stats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/stats.py b/modules/stats.py index 6d1b2b3d..e15246ab 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -88,8 +88,8 @@ class Module(ModuleManager.BaseModule): @utils.hook("api.get.servers") def servers_api(self, event): - if event["path"]: - server_id = event["path"][0] + if event["args"]: + server_id = event["args"][0] if not server_id.isdigit(): return None server_id = int(server_id) @@ -118,8 +118,8 @@ class Module(ModuleManager.BaseModule): } @utils.hook("api.get.channels") def channels_api(self, event): - if event["path"]: - server_id = event["path"][0] + if event["args"]: + server_id = event["args"][0] if not server_id.isdigit(): return None server_id = int(server_id)