修改
This commit is contained in:
1 parent
0c740f5a53
commit
a1867fd03e
5 files changed
+26
-12
No files matched your search
@@ -23,6 +23,8 @@ from urllib.parse import quote_plus
|
||||
|
||||
import requests
|
||||
|
||||
from maintain.paths_config import CPA_AUTHS_DIR
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
|
||||
logger = logging.getLogger("cpa-runner")
|
||||
@@ -84,7 +86,7 @@ def runner_config_from_env() -> RunnerConfig:
|
||||
target_dir=Path(
|
||||
os.getenv(
|
||||
"TARGET_DIR",
|
||||
str(REPO_ROOT / "export" / "cpa_auths"),
|
||||
CPA_AUTHS_DIR,
|
||||
)
|
||||
).resolve(),
|
||||
python_bin=os.getenv("PYTHON_BIN", "python3"),
|
||||
@@ -424,9 +426,7 @@ def runner_config_from_db(get_setting: Callable[[str, str], str]) -> RunnerConfi
|
||||
oauth_dir=Path(
|
||||
g("pipeline_oauth_dir", str(REPO_ROOT / "accounts" / "oauth"))
|
||||
).resolve(),
|
||||
target_dir=Path(
|
||||
g("cpa_target_dir", str(REPO_ROOT / "export" / "cpa_auths"))
|
||||
).resolve(),
|
||||
target_dir=Path(g("cpa_target_dir", CPA_AUTHS_DIR)).resolve(),
|
||||
python_bin=g("pipeline_python_bin", "python3"),
|
||||
dingtalk_webhook=g("dingtalk_webhook", "").strip(),
|
||||
dingtalk_secret=g("dingtalk_secret", "").strip(),
|
||||
|
||||
Reference in new issue
Block a user