Fixed deleted comment fields

This commit is contained in:
FinnStutzenstein 2018-05-03 17:26:47 +02:00
parent 60ae155d96
commit d189e5bca8

View File

@ -46,10 +46,11 @@ class MotionSlide(ProjectorElement):
recommendation_field_id = None
for id, field in fields.items():
if field.get('forState', False):
state_field_id = id
if field.get('forRecommendation', False):
recommendation_field_id = id
if isinstance(field, dict):
if field.get('forState', False):
state_field_id = id
if field.get('forRecommendation', False):
recommendation_field_id = id
# extract all mentioned motions from the state and recommendation
motion_ids = set()