send int
This commit is contained in:
parent
0ec54cb89e
commit
7c58590103
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ class Imdb(models.Model):
|
|||
for key in j.keys():
|
||||
if not j[key]:
|
||||
del j[key]
|
||||
if 'year' in j and isinstance(j['year'], basestring) and j['year'].isdigit():
|
||||
j['year'] = int(j['year'])
|
||||
return j
|
||||
|
||||
def get_new_ids(timeout=-1):
|
||||
|
|
Loading…
Reference in a new issue