Skip to content

Commit

Permalink
Merge pull request #4614 from mikhailprivalov/fix_titul530_is_normali…
Browse files Browse the repository at this point in the history
…ze_date

normalize_date titul530
  • Loading branch information
Wellheor1 authored Jan 10, 2025
2 parents f1c66bd + a16e628 commit 05c8497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion forms/forms106.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,6 @@ def form_02(request_data):
doc.build(objs)
pdf = buffer.getvalue()
buffer.close()

return pdf


Expand Down
4 changes: 2 additions & 2 deletions forms/forms_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def primary_reception_get_data_by_cda(hosp_first_num, site_type=0):
list_values = get_result_value_iss(hosp_primary_iss, primary_research_id, titles_field)

if CDA_TITLES_FIELDS_PRIMARY_RESEARCH and list_values:
result_by_cda = {cda_dict_title.get(value[4]): value[2] for value in list_values}
result_by_cda = {cda_dict_title.get(value[4]): normalize_date(value[2]) for value in list_values}

return {
'result_by_cda': result_by_cda,
Expand Down Expand Up @@ -907,7 +907,7 @@ def hosp_extract_get_data_by_cda(hosp_last_num):
list_values = get_result_value_iss(hosp_extract_iss, extract_research_id, titles_field)

if CDA_TITLES_FIELDS_EXTRACT_RESEARCH and list_values:
result_by_cda = {cda_dict_title.get(value[4]): value[2] for value in list_values}
result_by_cda = {cda_dict_title.get(value[4]): normalize_date(value[2]) for value in list_values}

if list_values:
pass
Expand Down

0 comments on commit 05c8497

Please sign in to comment.