提交 872bb8f6 authored 作者: lidongxu's avatar lidongxu

'修改超时时间'

上级 642170dd
...@@ -372,7 +372,7 @@ def run_puling_conversion( ...@@ -372,7 +372,7 @@ def run_puling_conversion(
*, *,
yname: str = "浦零", yname: str = "浦零",
product_groups: list | None = None, product_groups: list | None = None,
timeout: float = 300, timeout: float = 600,
user_agent: str = "clean-data-api/1.0", user_agent: str = "clean-data-api/1.0",
dtype=str, dtype=str,
) -> dict: ) -> dict:
...@@ -419,7 +419,7 @@ def run_chengyu_conversion( ...@@ -419,7 +419,7 @@ def run_chengyu_conversion(
*, *,
yname: str = "诚予", yname: str = "诚予",
product_groups: list | None = None, product_groups: list | None = None,
timeout: float = 300, timeout: float = 600,
user_agent: str = "clean-data-api/1.0", user_agent: str = "clean-data-api/1.0",
dtype=str, dtype=str,
) -> dict: ) -> dict:
...@@ -443,7 +443,7 @@ def run_chengyu_conversion( ...@@ -443,7 +443,7 @@ def run_chengyu_conversion(
def _read_wide_table_from_url( def _read_wide_table_from_url(
url: str, url: str,
*, *,
timeout: float = 300, timeout: float = 600,
user_agent: str = "clean-data-api/1.0", user_agent: str = "clean-data-api/1.0",
dtype=str, dtype=str,
) -> tuple[pd.DataFrame, int | None]: ) -> tuple[pd.DataFrame, int | None]:
......
...@@ -313,7 +313,7 @@ def run_team_conversion( ...@@ -313,7 +313,7 @@ def run_team_conversion(
*, *,
yname: str = "稽查团队", yname: str = "稽查团队",
product_groups: list | None = None, product_groups: list | None = None,
timeout: float = 300, timeout: float = 600,
user_agent: str = "clean-data-api/1.0", user_agent: str = "clean-data-api/1.0",
dtype=str, dtype=str,
) -> dict: ) -> dict:
......
...@@ -10,7 +10,7 @@ import pandas as pd ...@@ -10,7 +10,7 @@ import pandas as pd
def read_excel_from_url( def read_excel_from_url(
url: str, url: str,
*, *,
timeout: float = 300, timeout: float = 600,
user_agent: str = "clean-data-api/1.0", user_agent: str = "clean-data-api/1.0",
skiprows: int = 0, # 跳过 Excel 前 N 行 skiprows: int = 0, # 跳过 Excel 前 N 行
header=None, # 指定哪一行作为列名,None 表示第一行 header=None, # 指定哪一行作为列名,None 表示第一行
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论