diff --git a/dags/business/business/community/community_summary.py b/dags/business/business/community/community_summary.py index 74dba73..e3e63b8 100644 --- a/dags/business/business/community/community_summary.py +++ b/dags/business/business/community/community_summary.py @@ -2,6 +2,7 @@ import logging import sys import comm import price +import sell log = logging.getLogger(__name__) @@ -11,4 +12,5 @@ log.info("同步类型:" + type) if type == 'all': comm.sync() - price.sync() \ No newline at end of file + price.sync() + sell.sync() \ No newline at end of file diff --git a/dags/business/business/community/sell.py b/dags/business/business/community/sell.py index 2a8f927..b7dc941 100644 --- a/dags/business/business/community/sell.py +++ b/dags/business/business/community/sell.py @@ -18,8 +18,8 @@ m_date = dateutils.iso_format() def build_doc(item): doc_dict = dict() if pd.notna(item['three_months_sell_num']): - doc_dict['three_months_sell_num'] = item['three_months_sell_num'] - + doc_dict['three_months_sell_num'] = int(item['three_months_sell_num']) + return doc_dict def sync(city=None): log.info(f"开始同步出售信息至206 {index_name}")