This commit is contained in:
Grzegorz Michalski
2026-03-02 09:47:35 +01:00
commit 2c225d68ac
715 changed files with 130067 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{% macro get_parent_models(model_name) %}
{% if execute %}
{% set model = ( graph.nodes.values() | selectattr('name', 'equalto', model_name) | list ).pop() %}
{% set depends_on = model.depends_on['nodes'] %}
{% set new_depends_on = [] %}
{% for item in depends_on %}
{% do new_depends_on.append(item.split('.')[2]) %}
{% endfor %}
{{ return(new_depends_on) }}
{% endif %}
{% endmacro %}