INNER CODE UNIT · Python
update_all_links
pluwen/awesome-testflight-link · scripts/update_status.py:16
async def update_all_links(links_data):
"""更新所有链接的状态,并补全缺失的应用名称"""
print(f"[info] Updating all links...")
all_links = links_data.get("_links", {})
links = list(all_links.keys())
if not links:
print("[warn] No links found")
return
conn_config = httpx.Limits(
max_connections=MAX_CONNECTIONS,
max_keepalive_connections=MAX_KEEPALIVE_CONNECTIONS,
)
async with httpx.AsyncClient(base_url=BASE_URL, limits=conn_config, follow_redirects=True) as session:
tasks = [
check_testflight_status(
session,