diff options
author | Erik Johnston <erik@matrix.org> | 2019-06-27 16:06:23 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-06-27 16:06:23 +0100 |
commit | 729f5a4fb6654e6c9beb68a3edbb8dbbae076e3f (patch) | |
tree | 47dc6eadbe4e811ca4717a8cc5b2c66be07f3e2b /synapse/storage | |
parent | Move changelog (diff) | |
download | synapse-729f5a4fb6654e6c9beb68a3edbb8dbbae076e3f.tar.xz |
Review comments
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/devices.py | 4 |
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 |