添加原始数据长度校验,避免数据库保存失败
This commit is contained in:
@@ -88,3 +88,11 @@ def handle_insurance_type(string):
|
||||
if not string:
|
||||
return ""
|
||||
return string.replace(":", "").replace(":", "")
|
||||
|
||||
|
||||
# 处理原始数据
|
||||
def handle_original_data(string):
|
||||
if not string:
|
||||
return ""
|
||||
# 防止过长存入数据库失败
|
||||
return string[:255]
|
||||
|
||||
Reference in New Issue
Block a user