fix: simplify title in stats cli display

This commit is contained in:
Florian Sylvain
2025-03-28 22:50:37 +01:00
parent 6b51a52f0c
commit f03fd049f7
+1 -2
View File
@@ -153,8 +153,7 @@ class StatsVisualization:
results: Dictionary containing analysis results results: Dictionary containing analysis results
value_type: Either "number" or "star" to specify which analysis to format value_type: Either "number" or "star" to specify which analysis to format
""" """
title_suffix = "NUMBERS ANALYSIS" if value_type == "number" else "STARS ANALYSIS" title = "MAIN ANALYSIS" if value_type == "number" else "STAR ANALYSIS"
title = f"MAIN {title_suffix}" if value_type == "number" else f"STAR {title_suffix}"
min_key = f"min_{value_type}" min_key = f"min_{value_type}"
max_key = f"max_{value_type}" max_key = f"max_{value_type}"
return f"\n{title}:" \ return f"\n{title}:" \