Skip to content

Commit

Permalink
fix: broken glue extractor when there is a description (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsyi authored Oct 23, 2020
1 parent 189b8f9 commit 18425da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipelines/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='whale-pipelines',
version='1.1.0',
version='1.1.1',
author='Robert Yi',
author_email='[email protected]',
description="A pared-down metadata scraper + SQL runner.",
Expand Down
6 changes: 5 additions & 1 deletion pipelines/whale/transformer/markdown_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
COLUMN_DETAILS_DELIMITER
)
from databuilder.models.watermark import Watermark
from databuilder.models.table_metadata import DescriptionMetadata

import textwrap

Expand All @@ -26,7 +27,10 @@ def format_table_metadata(
formatted_columns = self.format_columns(record)

if record.description:
description = record.description + "\n"
if type(record.description) == DescriptionMetadata:
description = record.description._text + "\n"
else:
description = str(record.description) + "\n"
else:
description = ""

Expand Down

0 comments on commit 18425da

Please sign in to comment.