From e818522de83693bb9c67f6fb3196db31dbb22693 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Tue, 4 Mar 2025 21:26:28 +0800 Subject: [PATCH] Refine --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f85714d..3d06897 100644 --- a/main.py +++ b/main.py @@ -2148,7 +2148,7 @@ async def fastapi_query_all_records_by_date(querydate: str) -> dict[str, list]: # 查询指定日期、类型、属性的所有记录 # 返回 [{'time': '2024-01-01T00:00:00Z', 'ID': '1', 'value': 1.0}, {'time': '2024-01-01T00:00:00Z', 'ID': '2', 'value': 2.0}] @app.get("/queryallrecordsbydateproperty/") -async def fastapi_query_all_records_by_date_property(querydate: str, querytype: str, property: str) -> list[dict[str, float|str]]: +async def fastapi_query_all_records_by_date_property(querydate: str, querytype: str, property: str) -> list[dict]: return influxdb_api.query_all_record_by_date_property(query_date=querydate, type=querytype, property=property, client=influx_client)