新增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
+3 -1
View File
@@ -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)