251201更新

This commit is contained in:
liubiren 2025-12-01 18:29:51 +08:00
parent b34a1da1a0
commit a0a49bfcda
2 changed files with 4 additions and 5 deletions

View File

@ -26,7 +26,6 @@ from requests.adapters import HTTPAdapter
from sqlalchemy import create_engine, text from sqlalchemy import create_engine, text
from urllib3.util.retry import Retry from urllib3.util.retry import Retry
""" """
封装sqlalchemy实现按照SQL查询 封装sqlalchemy实现按照SQL查询
类和函数的区别 类和函数的区别
@ -156,6 +155,7 @@ def restrict(refill_rate=5, max_tokens=5):
time.sleep(wait_time * 1.5**retries) time.sleep(wait_time * 1.5**retries)
retries += 1 retries += 1
raise Exception("request too frequently") raise Exception("request too frequently")
return wrapper return wrapper
return decorator return decorator
@ -244,7 +244,7 @@ class HTTPClient:
total: int = 3, total: int = 3,
backoff_factor: float = 0.5, backoff_factor: float = 0.5,
cache_enabled: bool = False, cache_enabled: bool = False,
cache_ttl: int = 90, cache_ttl: int = 360,
): ):
""" """
:param timeout: 超时时间单位为秒 :param timeout: 超时时间单位为秒

View File

@ -1116,7 +1116,7 @@ def disease_diagnosis(**kwargs) -> str | None:
# ------------------------- # -------------------------
# 主程序 # 主逻辑
# ------------------------- # -------------------------
@ -1168,8 +1168,7 @@ if __name__ == "__main__":
"被保人信息": {}, # 实验阶段被保人信息为空字典 "被保人信息": {}, # 实验阶段被保人信息为空字典
"其它信息": {}, "其它信息": {},
}, },
"发票层": [], "费项层": [],
"小项层": [],
} }
# 遍历赔案目录中影像件地址 # 遍历赔案目录中影像件地址