decode_result takes an iterable
This commit is contained in:
parent
455579ca90
commit
d4f50f3ae5
|
@ -68,7 +68,10 @@ class RoomStore(SQLBaseStore):
|
||||||
"""
|
"""
|
||||||
query = RoomsTable.select_statement("room_id=?")
|
query = RoomsTable.select_statement("room_id=?")
|
||||||
return self._execute(
|
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
|
@defer.inlineCallbacks
|
||||||
|
|
|
@ -122,7 +122,7 @@ class TransactionStore(SQLBaseStore):
|
||||||
)
|
)
|
||||||
|
|
||||||
txn.execute(query, (destination,))
|
txn.execute(query, (destination,))
|
||||||
results = SentTransactions.decode_results(txn)
|
results = SentTransactions.decode_results(txn.fetchall())
|
||||||
|
|
||||||
prev_txns = [r.transaction_id for r in results]
|
prev_txns = [r.transaction_id for r in results]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue