This commit is contained in:
DingZQ
2025-03-04 21:45:28 +08:00
parent 47b3b8644d
commit 90b46de3dc

View File

@@ -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}"