summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorH. Shay <hillerys@element.io>2022-01-04 12:47:39 -0800
committerH. Shay <hillerys@element.io>2022-01-04 12:50:21 -0800
commitda5c58bb243dcd409735919a8de453b8eea71822 (patch)
treeeee7741e588a14b166c030ab77ff49a5ff96ece8 /synapse/rest
parentlint (diff)
downloadsynapse-github/shay/pyupgrade.tar.xz
run pyupgrade --py37-plus --keep-percent-format on synapse/ github/shay/pyupgrade shay/pyupgrade
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/media.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/media.py b/synapse/rest/admin/media.py
index 7236e4027f..299f5c9eb0 100644
--- a/synapse/rest/admin/media.py
+++ b/synapse/rest/admin/media.py
@@ -466,7 +466,7 @@ class UserMediaRestServlet(RestServlet):
         )
 
         deleted_media, total = await self.media_repository.delete_local_media_ids(
-            ([row["media_id"] for row in media])
+            [row["media_id"] for row in media]
         )
 
         return HTTPStatus.OK, {"deleted_media": deleted_media, "total": total}