rating/votes are numbers
This commit is contained in:
parent
a6ac57c54f
commit
396b86f061
1 changed files with 2 additions and 2 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue