diff --git a/calculation/schema.py b/calculation/schema.py index 7f6c3aa..24abaf0 100644 --- a/calculation/schema.py +++ b/calculation/schema.py @@ -166,8 +166,8 @@ def resolve_calculation_params(parent, info, **kwargs): # get the signal result - calculation param object # related to the input class name and instance # do not include None results - if sr[1]: - tranformed_signal_results.extend(sr[1]) + if sr: + tranformed_signal_results.append(sr) # make parameter list from signal unique - discinct list of dict by 'name' keyword tranformed_signal_results = list({v['name']: v for v in tranformed_signal_results}.values()) for param in tranformed_signal_results: