how to convert nonetype to int or string?,int(0 if value is None else value)