feat: support system variable

This commit is contained in:
junjun
2026-03-16 18:20:33 +08:00
committed by Junjun
parent a1c90cf2b7
commit 606949af67
@@ -69,6 +69,9 @@ def transTreeItem(session: SessionDep, current_user: CurrentUser, item: Dict, ds
variable_id = item.get('variable_id')
if variable_id is not None:
sys_variable = session.query(SystemVariable).filter(SystemVariable.id == variable_id).first()
if sys_variable is None:
return None
# do inner system variable
if sys_variable.type == 'system':
res = whereName + whereTerm + getSysVariableValue(sys_variable, current_user)