Show capabilities in API server stats (stats.py)

This commit is contained in:
jesopo 2019-02-08 17:56:13 +00:00
parent 9a0b8f3d00
commit dc0a021231

View file

@ -60,7 +60,9 @@ class Module(ModuleManager.BaseModule):
"bytes-written": server.bytes_written, "bytes-written": server.bytes_written,
"bytes-read": server.bytes_read, "bytes-read": server.bytes_read,
"channels": { "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") @utils.hook("api.get.servers")