Don't strip of False values from events when serializing
parent
72e80dbe0e
commit
69ddec6589
|
@ -22,7 +22,7 @@ def serialize_event(hs, e):
|
||||||
if not isinstance(e, SynapseEvent):
|
if not isinstance(e, SynapseEvent):
|
||||||
return e
|
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:
|
if "age_ts" in d:
|
||||||
d["age"] = int(hs.get_clock().time_msec()) - d["age_ts"]
|
d["age"] = int(hs.get_clock().time_msec()) - d["age_ts"]
|
||||||
del d["age_ts"]
|
del d["age_ts"]
|
||||||
|
|
Loading…
Reference in New Issue