修复bug

This commit is contained in:
dekun
2026-05-23 16:39:35 +08:00
parent c66c9f01c5
commit 952d57ab6d
7 changed files with 77 additions and 13 deletions
+3 -2
View File
@@ -27,7 +27,7 @@ DEFAULT_EXCHANGES = [
"agent_url": "http://127.0.0.1:15201",
"flask_url": "http://127.0.0.1:5004",
"review_url": "http://127.0.0.1:5004/records",
"enabled": False,
"enabled": True,
"capabilities": ["key", "trend"],
},
{
@@ -60,7 +60,8 @@ def _ids_from_csv(raw: str | None) -> set[str]:
def env_force_disabled_ids() -> set[str]:
raw = os.getenv("HUB_DISABLED_IDS", "1").strip()
# 未设置时默认不强制关闭任何账户;要用旧行为可设 HUB_DISABLED_IDS=1
raw = (os.getenv("HUB_DISABLED_IDS") or "").strip()
return _ids_from_csv(raw)