新增板块同步

This commit is contained in:
shenjian@fangjia.com
2022-11-16 17:39:18 +08:00
parent da4eb088a6
commit 084dd790b6
+3 -1
View File
@@ -37,6 +37,8 @@ def build_doc(item):
build_type = commutils.format_build_type(item['build_type'])
if pd.notna(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'])
if pd.notna(household_count):
@@ -66,7 +68,7 @@ def sync(city=None):
seaweed_df = pd.DataFrame(
list(seaweed_conn.find(seaweed_query, {'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1,
'alias': 1, 'estate_type2': 1, 'build_type': 1,
'household_count': 1,
'household_count': 1, 'block': 1,
'estate_charge': 1, 'finish_building_date': 1})
.batch_size(100000)))