Skip to content

Commit

Permalink
fix rich table
Browse files Browse the repository at this point in the history
  • Loading branch information
nmvrs committed Oct 15, 2024
1 parent a9be84d commit 139e932
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_requirements():


PACKAGE_NAME = "vcpkg-sbom"
VERSION = "0.0.3"
VERSION = "0.0.4"
AUTHOR = "Moverse P.C."
EMAIL = "[email protected]"
LICENSE = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion vcpkg_sbom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import spdx_tools.spdx.validation.uri_validators
import spdx_tools.spdx.writer.write_anything
import toolz
from rich.table import Table as RichTable


# NOTE: from https://github.com/Textualize/rich/discussions/482
Expand All @@ -32,7 +33,7 @@ def __init__(self, table_max_rows: int, name: str, *args, **kwargs) -> None:
def update_table(self, result: typing.Optional[typing.Tuple[str]] = None):
if result is not None:
self.results.append(result)
table = rich.Table()
table = RichTable()
table.add_column("ID")
table.add_column(self.name, width=80)

Expand Down

0 comments on commit 139e932

Please sign in to comment.