Refine
This commit is contained in:
@@ -1806,8 +1806,10 @@ def query_all_record_by_date_property(query_date: str, type: str, property: str,
|
|||||||
print(start_time)
|
print(start_time)
|
||||||
stop_time = (datetime.strptime(query_date, "%Y-%m-%d")).replace(hour=16, minute=0, second=0, tzinfo=timezone.utc).isoformat()
|
stop_time = (datetime.strptime(query_date, "%Y-%m-%d")).replace(hour=16, minute=0, second=0, tzinfo=timezone.utc).isoformat()
|
||||||
print(stop_time)
|
print(stop_time)
|
||||||
# 构建 Flux 查询语句
|
|
||||||
|
|
||||||
|
print(f"now time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
|
||||||
|
|
||||||
|
# 构建 Flux 查询语句
|
||||||
print("before query influxdb")
|
print("before query influxdb")
|
||||||
|
|
||||||
# 构建 Flux 查询语句
|
# 构建 Flux 查询语句
|
||||||
@@ -1822,6 +1824,7 @@ def query_all_record_by_date_property(query_date: str, type: str, property: str,
|
|||||||
tables = query_api.query(flux_query)
|
tables = query_api.query(flux_query)
|
||||||
|
|
||||||
print("after query influxdb")
|
print("after query influxdb")
|
||||||
|
print(f"now time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
|
||||||
|
|
||||||
result_records = []
|
result_records = []
|
||||||
# 解析查询结果
|
# 解析查询结果
|
||||||
|
|||||||
Reference in New Issue
Block a user