0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 13:33:50 +01:00
This commit is contained in:
Erik Johnston 2017-09-28 12:46:04 +01:00
parent c9bc4b7031
commit 7a44c01d89

View file

@ -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,