Skip to content
Snippets Groups Projects
Commit 69ddec65 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't strip of False values from events when serializing

parent 72e80dbe
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def serialize_event(hs, e):
if not isinstance(e, SynapseEvent):
return e
d = {k: v for k, v in e.get_dict().items() if v is not None or v is not False}
d = {k: v for k, v in e.get_dict().items() if v is not None}
if "age_ts" in d:
d["age"] = int(hs.get_clock().time_msec()) - d["age_ts"]
del d["age_ts"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment