ソースを参照

修改url不可被读取的问题

31039 1 ヶ月 前
コミット
af44af57a7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      api/test2.py

+ 1 - 1
api/test2.py

@@ -115,7 +115,7 @@ async def analyze_engine_health(request: AnalysisRequest):
     """
     """
     try:
     try:
         # 获取并解析数据
         # 获取并解析数据
-        response = requests.get(request.url)
+        response = requests.get(request.data_url)
         response.encoding = 'UTF-8'
         response.encoding = 'UTF-8'
         csv_data = StringIO(response.text)
         csv_data = StringIO(response.text)
         dataframe = pd.read_csv(csv_data, index_col=False)
         dataframe = pd.read_csv(csv_data, index_col=False)