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)