mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:54:53 -04:00
PEP8 cleanups
This commit is contained in:
parent
8fa3cc37f9
commit
d260a42ca2
7 changed files with 29 additions and 16 deletions
|
@ -87,7 +87,11 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
"content": json.dumps(event.content),
|
||||
}
|
||||
|
||||
unrec = {k: v for k, v in event.get_full_dict().items() if k not in vals.keys()}
|
||||
unrec = {
|
||||
k: v
|
||||
for k, v in event.get_full_dict().items()
|
||||
if k not in vals.keys()
|
||||
}
|
||||
vals["unrecognized_keys"] = json.dumps(unrec)
|
||||
|
||||
yield self._simple_insert("events", vals)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue