Return null for value format
This commit is contained in:
parent
6b2a8a3845
commit
e2d080b694
|
@ -103,7 +103,9 @@ def get_output_data(obj, input_data_all):
|
||||||
return output, ui
|
return output, ui
|
||||||
|
|
||||||
def format_value(x):
|
def format_value(x):
|
||||||
if isinstance(x, (int, float, bool, str)):
|
if x is None:
|
||||||
|
return None
|
||||||
|
elif isinstance(x, (int, float, bool, str)):
|
||||||
return x
|
return x
|
||||||
else:
|
else:
|
||||||
return str(x)
|
return str(x)
|
||||||
|
|
Loading…
Reference in New Issue