Skip to content
Snippets Groups Projects
Commit f2b55e1c authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Bugfix to serializer for single inspirals

Previous arrangement was not including zero-valued fields. We now
include all non-None fields.
parent a137c932
No related branches found
No related tags found
No related merge requests found
......@@ -619,7 +619,7 @@ def singleInspiralToDict(single_inspiral):
rv = {}
for field_name in SingleInspiral.field_names():
value = getattr(single_inspiral, field_name, None)
if value:
if value is not None:
rv.update({ field_name: value })
return rv
......
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