diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-03-02 10:16:24 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-03-02 10:16:24 +0000 |
commit | 3d73383d185b41b9986366da8123255e3a8ce1e0 (patch) | |
tree | 95fdacb46fc8315abfa946bb1979a33fd7bc37a8 /synapse/storage/room.py | |
parent | PR tweaks: set earlier on and use 'as json' for compat (diff) | |
download | synapse-3d73383d185b41b9986366da8123255e3a8ce1e0.tar.xz |
Modify _simple_select_list to allow an empty WHERE clause. Use it for get_all_rooms and get_all_users.
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r-- | synapse/storage/room.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py index 3a64693404..6bd0b22ae5 100644 --- a/synapse/storage/room.py +++ b/synapse/storage/room.py @@ -77,9 +77,8 @@ class RoomStore(SQLBaseStore): Returns: A list of namedtuples containing the room information. """ - query = RoomsTable.select_statement() - return self._execute( - RoomsTable.decode_results, query, + return self._simple_select_list( + table="rooms", keyvalues=None, retcols=["room_id"] ) @defer.inlineCallbacks |