diff --git a/integration_framework/views.py b/integration_framework/views.py index 61848b4d1e..1d10c43962 100644 --- a/integration_framework/views.py +++ b/integration_framework/views.py @@ -2550,16 +2550,19 @@ def results_by_direction(request): 'internalCode': r.research_internal_code, 'fio': short_fio_dots(r.fio) if r.fio else r.doc_confirmation_string, 'confirmedAt': r.date_confirm, - 'fractions': []} - - objs_result[r.direction]['services'][r.iss_id]['fractions'].append({ - 'title': r.fraction_title, - 'value': r.value, - 'units': r.units, - 'fsli': r.fraction_fsli, - 'ref_m': r.ref_m, - 'ref_f': r.ref_f, - }) + 'fractions': [], + } + + objs_result[r.direction]['services'][r.iss_id]['fractions'].append( + { + 'title': r.fraction_title, + 'value': r.value, + 'units': r.units, + 'fsli': r.fraction_fsli, + 'ref_m': r.ref_m, + 'ref_f': r.ref_f, + } + ) if is_paraclinic or is_doc_refferal or is_user_forms: results = desc_to_data(directions_data, force_all_fields=True)