"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "9370508368f2af3f4e3be582d047eca6ecea8f66"
Commit e2d080b6 authored by space-nuko's avatar space-nuko
Browse files

Return null for value format

parent 6b2a8a38
...@@ -103,7 +103,9 @@ def get_output_data(obj, input_data_all): ...@@ -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)
......
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