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
|
||||
def update_item(cls, item):
|
||||
info = item.json()
|
||||
#ignore values without title, must be invalid
|
||||
if not 'title' in info:
|
||||
return
|
||||
data = []
|
||||
if 'originalTitle' in info:
|
||||
data.append({
|
||||
|
|
Loading…
Reference in a new issue