Skip to content

Commit

Permalink
Update integration_framework/views.py
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
urchinpro and github-actions[bot] authored Sep 20, 2023
1 parent a7d1c21 commit 9d34e3a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions integration_framework/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d34e3a

Please sign in to comment.