优化
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
"""
|
||||
第一步: 将百度经纬度转为高德经纬度(只需跑批一次即可)
|
||||
第一步: 将百度经纬度转为高德经纬度(只需跑批一次即可) TODO
|
||||
"""
|
||||
@@ -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'],
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
通过开发区围栏更新企业开发区 TODO
|
||||
"""
|
||||
Reference in New Issue
Block a user