This commit is contained in:
shenjian@fangjia.com
2022-10-17 18:23:36 +08:00
parent 6c1420b56a
commit 450a0187c5
2 changed files with 5 additions and 3 deletions
@@ -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()
price.sync()
sell.sync()
+2 -2
View File
@@ -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}")