diff --git a/oxdata/movie/views.py b/oxdata/movie/views.py index 7e37d53..410bc59 100644 --- a/oxdata/movie/views.py +++ b/oxdata/movie/views.py @@ -70,7 +70,8 @@ def getData(request): data['rating'] = float(data['rating']) * 10 if 'votes' in data: - data['votes'] = 100 * float(data['votes']) / 1000000 #should be max votes on imdb + max_votes = ox.data.maxVotes() + data['votes'] = 100 * float(data['votes']) / max_votes if 'reviews' in data: reviews = []