diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-16 11:27:04 +0300 |
|---|---|---|
| committer | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-16 11:27:04 +0300 |
| commit | a3887611c86c2845c12af0c1e73c8240c7f512a5 (patch) | |
| tree | 8ee0e0faed71ec5bc8bb65d8b305074ac3cbbd43 /robusta_krr/formatters | |
| parent | 7a17e9a1df01776875e8b4f6a71b833100a01d5c (diff) | |
[MAIN-169] Change the format for description.
Diffstat (limited to 'robusta_krr/formatters')
| -rw-r--r-- | robusta_krr/formatters/table.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/robusta_krr/formatters/table.py b/robusta_krr/formatters/table.py index 6918512..aa5c3bf 100644 --- a/robusta_krr/formatters/table.py +++ b/robusta_krr/formatters/table.py @@ -10,9 +10,8 @@ from robusta_krr.core.models.allocations import RecommendationValue from robusta_krr.core.models.result import ResourceScan, ResourceType, Result from robusta_krr.utils import resource_units -NONE_LITERAL = "none" +NONE_LITERAL = "unset" NAN_LITERAL = "?" -ALLOWED_DIFFERENCE = 0.05 class TableFormatter(BaseFormatter): @@ -50,7 +49,15 @@ class TableFormatter(BaseFormatter): :rtype: str """ - table = Table(show_header=True, header_style="bold magenta", title=f"Scan result ({result.score} points)", caption=result.description) + table = Table( + show_header=True, + header_style="bold magenta", + title=result.description, + title_justify="left", + title_style="", + # TODO: Fix points calculation at [MAIN-270] + # caption=f"Scan result ({result.score} points)", + ) table.add_column("Number", justify="right", no_wrap=True) table.add_column("Cluster", style="cyan") |
