fix: pagination underflow, remove |safe, move bar_height_pct to adapter

This commit is contained in:
2026-05-04 19:09:28 +02:00
parent 27be840faa
commit a4846f3bea
4 changed files with 27 additions and 16 deletions

View File

@@ -352,12 +352,6 @@ pub struct MonthlyRating {
pub count: i64,
}
impl MonthlyRating {
pub fn bar_height_pct(&self) -> i64 {
(self.avg_rating / 5.0 * 100.0) as i64
}
}
#[derive(Clone, Debug)]
pub struct DirectorStat {
pub director: String,