Skip to content

Commit 949b585

Browse files
fix: Match on model short name rather than fully qualified name
Based on the documentation, it proposes you should pass in the short name of the model, however, because of how the dictionary is created for the manifest and catalog objects, the names its checking are the fully qualified name with dbt_project.database.model_name which causes no matches.
1 parent 220ebde commit 949b585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbt_docs_to_notion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def main(argv=None):
152152

153153
##### create / update database records #####
154154
for model_name, data in sorted(list(models.items()), reverse=True):
155-
if model_records_to_write == ['all'] or model_name in model_records_to_write:
155+
if model_records_to_write == ['all'] or model_name.split(".")[-1] in model_records_to_write:
156156
# form record object
157157
column_descriptions = {name: metadata['description']
158158
for name, metadata

0 commit comments

Comments
 (0)