mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Actually encode dicts as json in the DB
This commit is contained in:
parent
cbd5d55222
commit
6d6a1c3454
2 changed files with 4 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue