This commit is contained in:
DingZQ
2025-03-04 21:26:28 +08:00
parent 6d5a70deb3
commit e818522de8

View File

@@ -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)