新增community_summary城市传参
This commit is contained in:
@@ -6,6 +6,7 @@ import pandas as pd
|
||||
from goojia_utils import MAIN_MONGO_CLIENT, ElasticSearchClient, commutils, dateutils
|
||||
from elasticsearch import helpers
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
import sys
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
seaweed_conn = MAIN_MONGO_CLIENT.get_collection('fangjia', 'seaweed')
|
||||
@@ -84,4 +85,5 @@ def sync(city=None):
|
||||
log.info(f"完成同步出售信息至206 {index_name}")
|
||||
|
||||
|
||||
sync()
|
||||
city = sys.argv[1] if len(sys.argv) > 1 else None
|
||||
sync(city)
|
||||
Reference in New Issue
Block a user