Don't strip of False values from events when serializing

pull/10/head
Erik Johnston 2014-09-25 16:49:02 +01:00
parent 72e80dbe0e
commit 69ddec6589
1 changed files with 1 additions and 1 deletions

View File

@ -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"]