Commit 57aaaf9e authored by Christophe Benz's avatar Christophe Benz

Filter None values

parent 94199d4a
......@@ -115,7 +115,13 @@ def main():
variables_definitions.get_description(calculee_variable_name)))
elif args.output_format == 'json':
print(json.dumps(
{'results': results, 'warnings': warning_messages_by_section},
valfilter(
lambda val: val is not None,
{
'calculate_results': results,
'warnings': warning_messages_by_section,
},
),
sort_keys=True,
))
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment