新增格子均价

This commit is contained in:
shenjian@fangjia.com
2023-05-09 13:18:04 +08:00
parent 13bb857701
commit 3da15c2b5c
+2 -2
View File
@@ -105,12 +105,12 @@ def sync(city):
if len(actions) == 5000:
helpers.bulk(es206_client.elastic_client, actions)
count += len(actions)
log.info("更新:" + str(count))
log.info("更新格子数:" + str(count))
actions.clear()
if len(actions) > 0:
helpers.bulk(es206_client.elastic_client, actions)
count += len(actions)
log.info("更新:" + str(count))
log.info("更新格子数:" + str(count))
actions.clear()
log.info(f"完成计算{curr_city}格子价格")