ignore storylines without nodename

This commit is contained in:
j 2018-02-14 17:27:39 +01:00
parent aef2dd7790
commit 339ebe754f

View file

@ -142,7 +142,7 @@ class Engine:
{'key': 'type', 'operator': '==', 'value': 'storylines'}, {'key': 'type', 'operator': '==', 'value': 'storylines'},
], ],
'operator': '&' 'operator': '&'
}, ['id', 'name', 'tags', 'nodename']) if entity.get('tags', [])] }, ['id', 'name', 'tags', 'nodename']) if entity.get('tags', []) and entity.get('nodename')]
# Get list of storyline names # Get list of storyline names
names = list(set([storyline['name'] for storyline in storylines])) names = list(set([storyline['name'] for storyline in storylines]))
# Get all clips annotated with storyline references # Get all clips annotated with storyline references