update sect settings

This commit is contained in:
bridge
2025-11-29 14:16:45 +08:00
parent c4ed8044dd
commit 15fdc2a692
9 changed files with 202 additions and 84 deletions

View File

@@ -17,8 +17,10 @@ def _build_action_info(action):
info = {
"comment": action.COMMENT,
"requirements": action.DOABLES_REQUIREMENTS,
"params": action.PARAMS,
}
if action.PARAMS:
info["params"] = action.PARAMS
cd = int(getattr(action, "ACTION_CD_MONTHS", 0) or 0)
if cd > 0:
info["cd_months"] = cd