summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2020-10-26 15:07:51 +0100
committerGitHub <noreply@github.com>2020-10-26 14:07:51 +0000
commit913f8a06e43da760ccef329d43c139ec3c7fd7d5 (patch)
tree377eedebad84886f8ae59bed279060094179770e /synapse/rest
parentCheck status codes that profile handler returns (#8580) (diff)
downloadsynapse-913f8a06e43da760ccef329d43c139ec3c7fd7d5.tar.xz
Add field `total` to device list in admin API (#8644)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/devices.py b/synapse/rest/admin/devices.py
index a163863322..ffd3aa38f7 100644
--- a/synapse/rest/admin/devices.py
+++ b/synapse/rest/admin/devices.py
@@ -119,7 +119,7 @@ class DevicesRestServlet(RestServlet):
             raise NotFoundError("Unknown user")
 
         devices = await self.device_handler.get_devices_by_user(target_user.to_string())
-        return 200, {"devices": devices}
+        return 200, {"devices": devices, "total": len(devices)}
 
 
 class DeleteDevicesRestServlet(RestServlet):