修复bug
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user