From 7dca6685d1a3a4bf6a2cea7c32cd6fb2e32b66e6 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 19 Apr 2025 17:47:15 +0800 Subject: [PATCH] Refine --- influxdb_api.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/influxdb_api.py b/influxdb_api.py index 4b3caff..88e42cb 100644 --- a/influxdb_api.py +++ b/influxdb_api.py @@ -3355,11 +3355,11 @@ if __name__ == "__main__": client = InfluxDBClient(url=url, token=token) # step1: 检查连接状态,初始化influxdb的buckets - try: - # delete_buckets(org_name) - create_and_initialize_buckets(org_name) - except Exception as e: - print(f"连接失败: {e}") + # try: + # # delete_buckets(org_name) + # create_and_initialize_buckets(org_name) + # except Exception as e: + # print(f"连接失败: {e}") # step2: 先查询pg数据库中scada_info的信息,然后存储SCADA数据到SCADA_data这个bucket里