summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-30 16:38:20 +0000
committerErik Johnston <erik@matrix.org>2017-01-30 16:38:20 +0000
commite75a779d9e1e57353ea3e718efd72a88ce8e71e3 (patch)
tree21b4590e5b6d5be01ada41d7fdfd0ff3fb407c22
parentUse get_users_in_room and declare it iterable (diff)
downloadsynapse-e75a779d9e1e57353ea3e718efd72a88ce8e71e3.tar.xz
Fix query
-rw-r--r--synapse/storage/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index e68ee50152..3a6d2cbcd6 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -463,7 +463,7 @@ class DeviceStore(SQLBaseStore):
             SELECT user_id FROM device_lists_stream WHERE stream_id > ?
         """
         rows = yield self._execute("get_user_whose_devices_changed", None, sql, from_key)
-        defer.returnValue(set(row["user_id"] for row in rows))
+        defer.returnValue(set(row[0] for row in rows))
 
     def get_all_device_list_changes_for_remotes(self, from_key):
         """Return a list of `(stream_id, user_id, destination)` which is the