From c1878e4375b1062e9e1802a8a3706d11bde9e5c7 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 23 Feb 2025 10:31:30 +0800 Subject: [PATCH] Refine --- influxdb_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/influxdb_api.py b/influxdb_api.py index 66d245e..b333e94 100644 --- a/influxdb_api.py +++ b/influxdb_api.py @@ -2150,6 +2150,7 @@ if __name__ == "__main__": # step3: 查询测试示例 with InfluxDBClient(url=url, token=token, org=org_name, timeout=1000*10000) as client: + create_and_initialize_buckets(client=client, org_name=org_name) # # 示例1:query_latest_record_by_ID # bucket_name = "realtime_simulation_result" # 数据存储的 bucket 名称 # node_id = "ZBBDTZDP000022" # 查询的节点 ID