fix alternativeTitles
This commit is contained in:
parent
b720ac1157
commit
e7a36d533b
1 changed files with 1 additions and 2 deletions
|
@ -175,8 +175,7 @@ class Imdb(models.Model):
|
|||
if 'title' in data:
|
||||
data['title'] = ox.sanitize_html(data['title'])
|
||||
if 'alternativeTitles' in data:
|
||||
for a in data['alternativeTitles']:
|
||||
a[0] = ox.sanitize_html(a[0])
|
||||
data['alternativeTitles'] = [(ox.sanitize_html(a[0]), a[1]) for a in data['alternativeTitles']]
|
||||
if 'connections' in data:
|
||||
for type in data['connections']:
|
||||
for c in data['connections'][type]:
|
||||
|
|
Loading…
Reference in a new issue