Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Oct 12, 2022
1 parent b474d1f commit c7db7da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions metadata-ingestion/src/datahub/ingestion/source/tableau.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,9 +1099,7 @@ def emit_sheets_as_charts(self, workbook: Dict) -> Iterable[MetadataWorkUnit]:
# Tags
tag_list = sheet.get("tags", [])
if tag_list and self.config.ingest_tags:
tag_list_str = [
t.get("name", "") for t in tag_list if t is not None
]
tag_list_str = [t.get("name", "") for t in tag_list if t is not None]
chart_snapshot.aspects.append(
builder.make_global_tag_aspect_with_tag_list(tag_list_str)
)
Expand Down Expand Up @@ -1248,9 +1246,7 @@ def emit_dashboards(self, workbook: Dict) -> Iterable[MetadataWorkUnit]:

tag_list = dashboard.get("tags", [])
if tag_list and self.config.ingest_tags:
tag_list_str = [
t.get("name", "") for t in tag_list if t is not None
]
tag_list_str = [t.get("name", "") for t in tag_list if t is not None]
dashboard_snapshot.aspects.append(
builder.make_global_tag_aspect_with_tag_list(tag_list_str)
)
Expand Down

0 comments on commit c7db7da

Please sign in to comment.