优化
This commit is contained in:
@@ -2,6 +2,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
import comm
|
import comm
|
||||||
import price
|
import price
|
||||||
|
import sell
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -12,3 +13,4 @@ log.info("同步类型:" + type)
|
|||||||
if type == 'all':
|
if type == 'all':
|
||||||
comm.sync()
|
comm.sync()
|
||||||
price.sync()
|
price.sync()
|
||||||
|
sell.sync()
|
||||||
@@ -18,8 +18,8 @@ m_date = dateutils.iso_format()
|
|||||||
def build_doc(item):
|
def build_doc(item):
|
||||||
doc_dict = dict()
|
doc_dict = dict()
|
||||||
if pd.notna(item['three_months_sell_num']):
|
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):
|
def sync(city=None):
|
||||||
log.info(f"开始同步出售信息至206 {index_name}")
|
log.info(f"开始同步出售信息至206 {index_name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user