Make channel stats in /api/servers a dictionary
This commit is contained in:
parent
ab60012cbe
commit
7df55305ca
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue