From 450a0187c5a394bc2c6f5bc4cc4497d58fd43669 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Mon, 17 Oct 2022 18:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/community_summary.py | 4 +++- dags/business/business/community/sell.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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}")