diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-11 23:16:30 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-11 23:16:30 +0100 |
| commit | 9289a82e262e4acc58b37ba7e0fc29f85cb1ba7c (patch) | |
| tree | e149cd3d8cc5ce397cab00d4c8fa0d8ca1682cd6 /ui/src | |
| parent | 57256e52c51bdc5cd3f79dd4b30d38c090218ffc (diff) | |
| download | jellything-9289a82e262e4acc58b37ba7e0fc29f85cb1ba7c.tar jellything-9289a82e262e4acc58b37ba7e0fc29f85cb1ba7c.tar.bz2 jellything-9289a82e262e4acc58b37ba7e0fc29f85cb1ba7c.tar.zst | |
round ratings for display
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/props.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/props.rs b/ui/src/props.rs index 64713ea..9d1f41a 100644 --- a/ui/src/props.rs +++ b/ui/src/props.rs @@ -44,8 +44,8 @@ markup::define! { RatingType::RottenTomatoes => {p.rating{ @value " Tomatoes" }} RatingType::Metacritic if *full => {p{ "Metacritic Score: " @value }} RatingType::Imdb => {p.rating{ "IMDb " @value }} - RatingType::Tmdb => {p.rating{ "TMDB " @value }} - RatingType::Trakt if *full => {p.rating{ "Trakt " @value }} + RatingType::Tmdb => {p.rating{ "TMDB " @format!("{:.01}", value) }} + RatingType::Trakt if *full => {p.rating{ "Trakt " @format!("{:.01}", value) }} _ => {} } } |