Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.

Commit 8c5b066

Browse files
BenexlCopilot
andauthored
Update viu_media/assets/scripts/fzf/dynamic_preview.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a826f39 commit 8c5b066

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

viu_media/assets/scripts/fzf/dynamic_preview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def format_score_stars(score):
4949
"""Format score as stars out of 6."""
5050
if score is None:
5151
return "N/A"
52-
# Convert 0-100 score to 0-6 stars
53-
stars = round(score / 100 * 6)
52+
# Convert 0-100 score to 0-6 stars, capped at 6 for consistency
53+
stars = min(round(score * 6 / 100), 6)
5454
return "⭐" * stars + f" ({score}/100)"
5555

5656

0 commit comments

Comments
 (0)