diff --git a/uvdat/core/rest/simulations.py b/uvdat/core/rest/simulations.py index 4d5d80bf..c2935d06 100644 --- a/uvdat/core/rest/simulations.py +++ b/uvdat/core/rest/simulations.py @@ -24,7 +24,7 @@ def get_available_simulations(project_id: int): options = a.get('options') if not options: options_annotations = a.get('options_annotations') - options_query = a.get('options_query') + options_query = a.get('options_query', {}) options_type = a.get('type') option_serializer_matches = [ s @@ -33,7 +33,7 @@ def get_available_simulations(project_id: int): and s.Meta.model == options_type and 'Extended' not in s.__name__ ] - if not options_query or not options_type or len(option_serializer_matches) == 0: + if not options_type or len(option_serializer_matches) == 0: options = [] else: option_serializer = option_serializer_matches[0]