diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-10-26 15:07:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 14:07:51 +0000 |
commit | 913f8a06e43da760ccef329d43c139ec3c7fd7d5 (patch) | |
tree | 377eedebad84886f8ae59bed279060094179770e /synapse/rest/admin/devices.py | |
parent | Check status codes that profile handler returns (#8580) (diff) | |
download | synapse-913f8a06e43da760ccef329d43c139ec3c7fd7d5.tar.xz |
Add field `total` to device list in admin API (#8644)
Diffstat (limited to 'synapse/rest/admin/devices.py')
-rw-r--r-- | synapse/rest/admin/devices.py | 2 |
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): |