diff --git a/influxdb_api.py b/influxdb_api.py index 4ae6a9d..724b302 100644 --- a/influxdb_api.py +++ b/influxdb_api.py @@ -1806,8 +1806,10 @@ def query_all_record_by_date_property(query_date: str, type: str, property: str, print(start_time) stop_time = (datetime.strptime(query_date, "%Y-%m-%d")).replace(hour=16, minute=0, second=0, tzinfo=timezone.utc).isoformat() print(stop_time) - # 构建 Flux 查询语句 + print(f"now time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}") + + # 构建 Flux 查询语句 print("before query influxdb") # 构建 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) print("after query influxdb") + print(f"now time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}") result_records = [] # 解析查询结果