summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/storage/media_repository.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/media_repository.py b/synapse/storage/media_repository.py
index b8a0dd0762..5e39daa210 100644
--- a/synapse/storage/media_repository.py
+++ b/synapse/storage/media_repository.py
@@ -260,7 +260,7 @@ class MediaRepositoryStore(SQLBaseStore):
         )
 
         def _delete_url_cache_txn(txn):
-            txn.executemany(sql, [(media_id) for media_id in media_ids])
+            txn.executemany(sql, [(media_id,) for media_id in media_ids])
 
         return self.runInteraction("delete_url_cache", _delete_url_cache_txn)
 
@@ -287,14 +287,14 @@ class MediaRepositoryStore(SQLBaseStore):
                 " WHERE media_id = ?"
             )
 
-            txn.executemany(sql, [(media_id) for media_id in media_ids])
+            txn.executemany(sql, [(media_id,) for media_id in media_ids])
 
             sql = (
                 "DELETE FROM local_media_repository_thumbnails"
                 " WHERE media_id = ?"
             )
 
-            txn.executemany(sql, [(media_id) for media_id in media_ids])
+            txn.executemany(sql, [(media_id,) for media_id in media_ids])
 
         return self.runInteraction(
             "delete_url_cache_media", _delete_url_cache_media_txn,