新增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
@@ -14,6 +14,7 @@ import pandas as pd
from elasticsearch import helpers
from concurrent.futures import ThreadPoolExecutor
from threading import Lock
import sys
log = logging.getLogger(__name__)
es206_client = ElasticSearchClient(host='192.168.0.206')
@@ -140,4 +141,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)