替换 localhost 为 127.0.0.1,避免 DNS 解析影响响应速度
This commit is contained in:
@@ -4930,7 +4930,8 @@ if __name__ == "__main__":
|
||||
# print(leakage)
|
||||
|
||||
# 示例:upload_cleaned_SCADA_data_to_influxdb
|
||||
upload_cleaned_SCADA_data_to_influxdb(file_path="./标准cleaned_demand_data.csv")
|
||||
import_multicolumn_data_from_file(file_path='data/szh_pressure_scada.csv', raw=True, bucket='SCADA_data')
|
||||
import_multicolumn_data_from_file(file_path='data/szh_flow_scada_converted.csv', raw=True, bucket='SCADA_data')
|
||||
|
||||
# 示例:delete_data
|
||||
# delete_data(delete_date='2025-05-04', bucket='SCADA_data')
|
||||
@@ -4952,7 +4953,7 @@ if __name__ == "__main__":
|
||||
# 示例:import_multicolumn_data_from_file
|
||||
# import_multicolumn_data_from_file(file_path='data/selected_Flow_Timedata2025_new_format_cleaned.csv', raw=False, bucket='SCADA_data')
|
||||
|
||||
# client = InfluxDBClient(url="http://localhost:8086", token=token, org=org_name)
|
||||
# client = InfluxDBClient(url="http://127.0.0.1:8086", token=token, org=org_name)
|
||||
# delete_api = client.delete_api()
|
||||
|
||||
# start = "2025-08-02T00:00:00Z" # 要删除的起始时间
|
||||
|
||||
Reference in New Issue
Block a user