This commit is contained in:
沈健
2025-06-09 14:52:19 +08:00
parent 0d8c221dd3
commit ac357b1d9e
3 changed files with 131 additions and 122 deletions
+5 -1
View File
@@ -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)