Skip to content

Commit

Permalink
chore: fix format by black
Browse files Browse the repository at this point in the history
  • Loading branch information
genkey6 committed Dec 10, 2024
1 parent cb07944 commit 9c3296e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/dbt_osmosis/core/column_level_knowledge_propagator.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,19 @@ def update_undocumented_columns_with_prior_knowledge(

changes_committed = 0
for column in undocumented_columns:
original_knowledge = ColumnLevelKnowledgePropagator._get_original_knowledge(node, column)
original_knowledge = ColumnLevelKnowledgePropagator._get_original_knowledge(
node, column
)
if original_knowledge["meta"].get("osmosis_prefix", None):
column_without_prefix = column.removeprefix(original_knowledge["meta"]["osmosis_prefix"])
column_without_prefix = column.removeprefix(
original_knowledge["meta"]["osmosis_prefix"]
)
else:
column_without_prefix = column

prior_knowledge: ColumnLevelKnowledge = get_prior_knowledge(knowledge, column_without_prefix)
prior_knowledge: ColumnLevelKnowledge = get_prior_knowledge(
knowledge, column_without_prefix
)
progenitor = prior_knowledge.pop("progenitor", None)
prior_knowledge: ColumnLevelKnowledge = {
k: v for k, v in prior_knowledge.items() if k in inheritables
Expand Down

0 comments on commit 9c3296e

Please sign in to comment.