From b905c0316d804195151ea81edc86f5044b1aef5d Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 8 Mar 2025 23:38:34 +0800 Subject: [PATCH] Query all scada data --- influxdb_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb_api.py b/influxdb_api.py index 4e6113a..bb29175 100644 --- a/influxdb_api.py +++ b/influxdb_api.py @@ -1419,7 +1419,7 @@ def query_all_SCADA_records_by_date(query_date: str, bucket: str="SCADA_data", c # 将北京时间转换为 UTC 时间 bg_start_time, bg_end_time = time_api.parse_beijing_date_range(query_date) - bg_end_time = bg_start_time + timedelta(hours=2) # 服务器性能不行,暂时返回2个小时的数据 + # bg_end_time = bg_start_time + timedelta(hours=2) # 服务器性能不行,暂时返回2个小时的数据 utc_start_time = bg_start_time.astimezone(timezone.utc) utc_end_time = bg_end_time.astimezone(timezone.utc)