新增板块同步
This commit is contained in:
@@ -37,6 +37,8 @@ def build_doc(item):
|
|||||||
build_type = commutils.format_build_type(item['build_type'])
|
build_type = commutils.format_build_type(item['build_type'])
|
||||||
if pd.notna(build_type):
|
if pd.notna(build_type):
|
||||||
doc_dict['build_type'] = build_type
|
doc_dict['build_type'] = build_type
|
||||||
|
if pd.notna(item['block']):
|
||||||
|
doc_dict['block'] = item['block']
|
||||||
|
|
||||||
household_count = commutils.format_households(item['household_count'])
|
household_count = commutils.format_households(item['household_count'])
|
||||||
if pd.notna(household_count):
|
if pd.notna(household_count):
|
||||||
@@ -66,7 +68,7 @@ def sync(city=None):
|
|||||||
seaweed_df = pd.DataFrame(
|
seaweed_df = pd.DataFrame(
|
||||||
list(seaweed_conn.find(seaweed_query, {'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1,
|
list(seaweed_conn.find(seaweed_query, {'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1,
|
||||||
'alias': 1, 'estate_type2': 1, 'build_type': 1,
|
'alias': 1, 'estate_type2': 1, 'build_type': 1,
|
||||||
'household_count': 1,
|
'household_count': 1, 'block': 1,
|
||||||
'estate_charge': 1, 'finish_building_date': 1})
|
'estate_charge': 1, 'finish_building_date': 1})
|
||||||
.batch_size(100000)))
|
.batch_size(100000)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user