diff --git a/oxdata/movie/views.py b/oxdata/movie/views.py index 8349ece..7e37d53 100644 --- a/oxdata/movie/views.py +++ b/oxdata/movie/views.py @@ -67,10 +67,10 @@ def getData(request): data['summary'] = fix_links(data['summary']) if 'rating' in data: - data['rating'] = data['rating'] * 10 + data['rating'] = float(data['rating']) * 10 if 'votes' in data: - data['votes'] = 100 * data['votes'] / 1000000 #should be max votes on imdb + data['votes'] = 100 * float(data['votes']) / 1000000 #should be max votes on imdb if 'reviews' in data: reviews = []