only if 逻辑

This commit is contained in:
2025-01-23 14:28:51 +08:00
parent 549ee8320a
commit 6d9d373032
2 changed files with 19 additions and 0 deletions

View File

@ -101,6 +101,9 @@ def get_template_info(template_id):
_luts = template_info.get('luts', '')
if _luts:
_template['luts'] = _luts.split(",")
_only_if = template_info.get('onlyIf', '')
if _only_if:
_template['only_if'] = _only_if
return _template
# outer template definition