优化
This commit is contained in:
@@ -65,4 +65,8 @@ def sync(province):
|
||||
DIDATA_DEV_ELASTIC_CLIENT.elastic_client.indices.put_settings(
|
||||
index="didata_company",
|
||||
body={"index": {"refresh_interval": "5s"}}
|
||||
)
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
for province in areautils.get_all_province():
|
||||
sync(province)
|
||||
Reference in New Issue
Block a user