mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 16:55:20 -04:00
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:
parent
ebc4830666
commit
3d73383d18
4 changed files with 21 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue