try to use $ value for budget
This commit is contained in:
parent
1145a42e5c
commit
e29e2cc06b
1 changed files with 5 additions and 1 deletions
|
@ -409,7 +409,11 @@ def getMovieBusinessSum(imdbId):
|
|||
b_ = {'budget': 0, 'gross': 0, 'profit': 0}
|
||||
if 'budget' in business:
|
||||
#b_['budget'] = sum([int(intValue(i.replace(',', ''))) for i in business['budget']])
|
||||
b_['budget'] = int(intValue(business['budget'][0].replace(',', '')))
|
||||
budget = filter(lambda x: x.startswith('$'), business['budget'])
|
||||
if not budget:
|
||||
budget = business['budget']
|
||||
b_['budget'] = int(intValue(budget[0].replace(',', '')))
|
||||
|
||||
if 'gross' in business:
|
||||
b_['gross'] = int(intValue(business['gross'][0].replace(',', '')))
|
||||
#b_['gross'] = sum([int(intValue(i.replace(',', ''))) for i in business['gross']])
|
||||
|
|
Loading…
Reference in a new issue