Updated README and fixed a TMDB parsing bug for movie details
This commit is contained in:
1 parent
a304367e0e
commit
2cb4cd3eee
13 files changed
+111
-6
No files matched your search
@@ -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