From dc0a02123184413371901876e4ef15254df6c13b Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 8 Feb 2019 17:56:13 +0000 Subject: [PATCH] Show capabilities in API server stats (stats.py) --- modules/stats.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/stats.py b/modules/stats.py index e6464601..3b64db76 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -60,7 +60,9 @@ class Module(ModuleManager.BaseModule): "bytes-written": server.bytes_written, "bytes-read": server.bytes_read, "channels": { - c.name: self._channel_stats(c) for c in server.channels} + c.name: self._channel_stats(c) for c in server.channels + }, + "capabilities": list(server.capabilities) } @utils.hook("api.get.servers")