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
|