优化
This commit is contained in:
@@ -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()
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user