get max votes from imdb
This commit is contained in:
parent
e67a92c16c
commit
0af94f2832
1 changed files with 2 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue