Skip to content

Commit

Permalink
fix: adjust options generation for simulation types
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Sep 17, 2024
1 parent 2e3f62c commit 5f224d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvdat/core/rest/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 5f224d3

Please sign in to comment.