Modify _simple_select_list to allow an empty WHERE clause. Use it for get_all_rooms and get_all_users.

This commit is contained in:
Kegan Dougal 2015-03-02 10:16:24 +00:00
parent ebc4830666
commit 3d73383d18
4 changed files with 21 additions and 17 deletions

View file

@ -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