diff --git a/api/directions/views.py b/api/directions/views.py index 35d3e5d691..9cb37cdba1 100644 --- a/api/directions/views.py +++ b/api/directions/views.py @@ -4443,6 +4443,8 @@ def patient_open_case(request): for o_case in open_case: data_case[o_case.iss_id] = "" child_direction = tree_direction(o_case.iss_id) + for child in child_direction: + print(child) data = {"data": ""} return JsonResponse(data) diff --git a/api/parse_file/views.py b/api/parse_file/views.py index 1db48f9fda..66e833fde4 100644 --- a/api/parse_file/views.py +++ b/api/parse_file/views.py @@ -207,7 +207,7 @@ def gen_commercial_offer(request): born_data = cells[born].split(" ")[0] age = -1 if born_data != "None": - age = age_for_year(born_data) + age = age_for_year(normalize_dots_date(born_data)) if "м" in cells[sex]: adds_harmfull = CONTROL_AGE_MEDEXAM.get("м") else: