mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
added ability to se skip paths in template data
This commit is contained in:
parent
467a3969cb
commit
027d0d4053
1 changed files with 5 additions and 0 deletions
|
|
@ -52,6 +52,11 @@ def _fill_schema_template_data(
|
||||||
if required_keys is None:
|
if required_keys is None:
|
||||||
first = True
|
first = True
|
||||||
|
|
||||||
|
if "skip_paths" in template_data:
|
||||||
|
skip_paths = template_data["skip_paths"]
|
||||||
|
if not isinstance(skip_paths, list):
|
||||||
|
skip_paths = [skip_paths]
|
||||||
|
|
||||||
# Cleanup skip paths (skip empty values)
|
# Cleanup skip paths (skip empty values)
|
||||||
skip_paths = [path for path in skip_paths if path]
|
skip_paths = [path for path in skip_paths if path]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue