Refine
This commit is contained in:
2
main.py
2
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}]
|
# 返回 [{'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/")
|
@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)
|
return influxdb_api.query_all_record_by_date_property(query_date=querydate, type=querytype, property=property, client=influx_client)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user