Skip to content

Commit 492f291

Browse files
authored
Merge pull request #28 from paige-fuller-ki/patch-1
fix: Match on model short name rather than fully qualified name
2 parents 220ebde + 949b585 commit 492f291

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)