优化
This commit is contained in:
@@ -28,7 +28,7 @@ def sync(province):
|
||||
if 'district' in source and (source['district'] != item['area_name']):
|
||||
errors.append(source)
|
||||
continue
|
||||
if ('registered_address' not in source) or ('company_name' not in source):
|
||||
if ('registered_address' not in source) or ('company_name' not in source) or ('district' not in source) or ('city' not in source):
|
||||
continue
|
||||
doc_info = {'province': source['province'], 'city': source['city'], 'district': source['district'],
|
||||
'company_name': source['company_name'], 'registered_address': source['registered_address'],
|
||||
|
||||
Reference in New Issue
Block a user