diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-14 14:30:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-14 14:30:25 +0100 |
commit | 6d6a1c3454ae787e3878202a8e41341ddcf7bee0 (patch) | |
tree | 1376ad1825e21a4a60b190141e862800111bc808 /synapse/storage/_base.py | |
parent | Change relative db paths to absolute paths in case we daemonize. (diff) | |
download | synapse-6d6a1c3454ae787e3878202a8e41341ddcf7bee0.tar.xz |
Actually encode dicts as json in the DB
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 489b6bd171..5cb26ad6db 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -288,7 +288,8 @@ class SQLBaseStore(object): def _parse_event_from_row(self, row_dict): d = copy.deepcopy({k: v for k, v in row.items() if v}) - d.update(json.loads(row["unrecognized_keys"])) + d.update(json.loads(json.loads(row["unrecognized_keys"]))) + d["content"] = json.loads(d["content"}) del d["unrecognized_keys"] return self.event_factory.create_event( |