fix flakes

This commit is contained in:
Matthew Hodgson 2017-12-27 23:58:51 +00:00 committed by Hubert Chathi
parent 234611f347
commit 982edca380
2 changed files with 6 additions and 4 deletions

View File

@ -202,13 +202,15 @@ class EndToEndRoomKeyStore(SQLBaseStore):
"SELECT MAX(version) FROM e2e_room_keys_versions WHERE user_id=?",
(user_id,)
)
version = txn.fetchone()[0]
this_version = txn.fetchone()[0]
else:
this_version = version
return self._simple_select_one_txn(
table="e2e_room_keys_versions",
keyvalues={
"user_id": user_id,
"version": version,
"version": this_version,
},
retcols=(
"user_id",