ignore invalid entries
This commit is contained in:
parent
be5b7474e0
commit
55ddd65c7e
1 changed files with 3 additions and 0 deletions
|
@ -283,6 +283,9 @@ class Match(models.Model):
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_item(cls, item):
|
def update_item(cls, item):
|
||||||
info = item.json()
|
info = item.json()
|
||||||
|
#ignore values without title, must be invalid
|
||||||
|
if not 'title' in info:
|
||||||
|
return
|
||||||
data = []
|
data = []
|
||||||
if 'originalTitle' in info:
|
if 'originalTitle' in info:
|
||||||
data.append({
|
data.append({
|
||||||
|
|
Loading…
Reference in a new issue