mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: support system variable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user