diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-20 10:57:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-20 10:57:26 +0000 |
commit | d4f50f3ae5a23886eb271ad8cee92d5fb5aae8b0 (patch) | |
tree | e98af8bcd0fd9716db54a706f7dd61f10570ac61 /synapse/storage/room.py | |
parent | Make database selection configurable (diff) | |
download | synapse-d4f50f3ae5a23886eb271ad8cee92d5fb5aae8b0.tar.xz |
decode_result takes an iterable
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r-- | synapse/storage/room.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py index 3c23f29215..b5031f5c77 100644 --- a/synapse/storage/room.py +++ b/synapse/storage/room.py @@ -68,7 +68,10 @@ class RoomStore(SQLBaseStore): """ query = RoomsTable.select_statement("room_id=?") return self._execute( - "get_room", RoomsTable.decode_single_result, query, room_id, + "get_room", + lambda txn: RoomsTable.decode_single_result(txn.fetchall()), + query, + room_id, ) @defer.inlineCallbacks |