diff --git a/modules/stats.py b/modules/stats.py index 279e6593..a5e8bea9 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -59,7 +59,8 @@ class Module(ModuleManager.BaseModule): "users": len(server.users), "bytes-written": server.bytes_written, "bytes-read": server.bytes_read, - "channels": [self._channel_stats(c) for c in server.channels] + "channels": { + c.name: self._channel_stats(c) for c in server.channels} } @utils.hook("api.get.servers")