From 90b46de3dc45fcb1b7adc560250f52f057ef960b Mon Sep 17 00:00:00 2001 From: DingZQ Date: Tue, 4 Mar 2025 21:45:28 +0800 Subject: [PATCH] Refine --- influxdb_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb_api.py b/influxdb_api.py index 3e63c2d..49ad45c 100644 --- a/influxdb_api.py +++ b/influxdb_api.py @@ -1815,7 +1815,7 @@ def query_all_record_by_date_property(query_date: str, type: str, property: str, # 构建 Flux 查询语句 flux_query = f''' from(bucket: "{bucket}") - |> range(start: {start_time.isoformat()}, stop: {stop_time.isoformat()}) + |> range(start: {start_time}, stop: {stop_time}) |> filter(fn: (r) => r._measurement == "{measurement}" and r._field == "{property}"