summary refs log tree commit diff
path: root/synapse/storage/devices.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-27 16:06:23 +0100
committerErik Johnston <erik@matrix.org>2019-06-27 16:06:23 +0100
commit729f5a4fb6654e6c9beb68a3edbb8dbbae076e3f (patch)
tree47dc6eadbe4e811ca4717a8cc5b2c66be07f3e2b /synapse/storage/devices.py
parentMove changelog (diff)
downloadsynapse-729f5a4fb6654e6c9beb68a3edbb8dbbae076e3f.tar.xz
Review comments
Diffstat (limited to '')
-rw-r--r--synapse/storage/devices.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index 44324bf400..d2b113a4e7 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -425,9 +425,7 @@ class DeviceWorkerStore(SQLBaseStore):
             """
 
             for chunk in batch_iter(to_check, 100):
-                txn.execute(
-                    sql % (",".join("?" for _ in chunk),), [from_key] + list(chunk)
-                )
+                txn.execute(sql % (",".join("?" for _ in chunk),), (from_key,) + chunk)
                 changes.update(user_id for user_id, in txn)
 
             return changes