新增community_summary城市传参
This commit is contained in:
@@ -7,6 +7,7 @@ from goojia_utils import MAIN_MONGO_CLIENT, ElasticSearchClient, commutils, date
|
||||
from elasticsearch import helpers
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
import re
|
||||
import sys
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
seaweed_conn = MAIN_MONGO_CLIENT.get_collection('fangjia', 'seaweed')
|
||||
@@ -106,4 +107,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