diff options
author | David Baker <dave@matrix.org> | 2018-10-29 21:01:22 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2018-10-29 21:01:22 +0000 |
commit | 563f9b61b1439e7a6a8a250fd068659092583dbf (patch) | |
tree | 5235f547ae3e9e746c7a969184028b354fbbf166 /synapse/handlers/e2e_room_keys.py | |
parent | Merge pull request #4109 from matrix-org/erikj/repl_devices (diff) | |
download | synapse-563f9b61b1439e7a6a8a250fd068659092583dbf.tar.xz |
Make e2e backup versions numeric in the DB
We were doing max(version) which does not do what we wanted on a column of type TEXT.
Diffstat (limited to 'synapse/handlers/e2e_room_keys.py')
-rw-r--r-- | synapse/handlers/e2e_room_keys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/e2e_room_keys.py b/synapse/handlers/e2e_room_keys.py index 5edb3cfe04..b6d302cd6b 100644 --- a/synapse/handlers/e2e_room_keys.py +++ b/synapse/handlers/e2e_room_keys.py @@ -138,7 +138,7 @@ class E2eRoomKeysHandler(object): else: raise - if version_info['version'] != version: + if str(version_info['version']) != version: # Check that the version we're trying to upload actually exists try: version_info = yield self.store.get_e2e_room_keys_version_info( |