get max votes from imdb

This commit is contained in:
j 2012-03-08 13:56:52 +01:00
parent e67a92c16c
commit 0af94f2832

View file

@ -70,7 +70,8 @@ def getData(request):
data['rating'] = float(data['rating']) * 10 data['rating'] = float(data['rating']) * 10
if 'votes' in data: 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: if 'reviews' in data:
reviews = [] reviews = []