Skip to content

Commit 5b896f7

Browse files
authored
Merge pull request #12 from ryandansby/ryand/fix_key_values
Fix key values for updated dbt
2 parents 23f2764 + 1a30b81 commit 5b896f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbt_docs_to_notion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def main():
334334
{
335335
"type": "text",
336336
"text": {
337-
"content": data['raw_sql'][:2000]
337+
"content": data['raw_code'][:2000] if 'raw_code' in data else data['raw_sql'][:2000]
338338
}
339339
}
340340
],
@@ -362,7 +362,7 @@ def main():
362362
{
363363
"type": "text",
364364
"text": {
365-
"content": data['compiled_sql'][:2000]
365+
"content": data['compiled_code'][:2000] if 'compiled_code' in data else data['compiled_sql'][:2000]
366366
}
367367
}
368368
],

0 commit comments

Comments
 (0)