summary refs log tree commit diff
path: root/synapse/storage/media_repository.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-09-28 12:46:04 +0100
committerErik Johnston <erik@matrix.org>2017-09-28 12:46:04 +0100
commit7a44c01d894d85a0eb829b4a82d1aeaff9a39ec9 (patch)
tree6dbd6bcf67e1f89d22ed2532a256007ac9488b25 /synapse/storage/media_repository.py
parentMerge pull request #2478 from matrix-org/erikj/expire_url_cache_thumbnails (diff)
downloadsynapse-7a44c01d894d85a0eb829b4a82d1aeaff9a39ec9.tar.xz
Fix typo
Diffstat (limited to 'synapse/storage/media_repository.py')
-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,