新增community_summary城市传参

This commit is contained in:
shenjian@fangjia.com
2023-02-20 18:29:04 +08:00
parent 8a49c13e45
commit e079380c50
20 changed files with 81 additions and 37 deletions
@@ -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)