Updated README and fixed a TMDB parsing bug for movie details
This commit is contained in:
@@ -175,7 +175,7 @@ impl<'a> Network<'a> {
|
||||
|
||||
let tmdb_rating = if let Some(rating) = ratings.tmdb {
|
||||
if let Some(value) = rating.value.as_f64() {
|
||||
format!("{}%", value * 10f64)
|
||||
format!("{}%", (value * 10f64).ceil())
|
||||
} else {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user