From 30c3f274545fe7777eec52f5168f6d999b07df25 Mon Sep 17 00:00:00 2001 From: well Date: Fri, 6 Dec 2024 14:11:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=BE=D0=BF=20=D0=B8=D0=BD=D1=84=D1=8B=20=D0=BF=D0=BE?= =?UTF-8?q?=20=D1=84=D0=B0=D0=B9=D0=BB=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- l2-frontend/src/components/UploadFile.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/l2-frontend/src/components/UploadFile.vue b/l2-frontend/src/components/UploadFile.vue index a2291d3b86..c1fb4c6569 100644 --- a/l2-frontend/src/components/UploadFile.vue +++ b/l2-frontend/src/components/UploadFile.vue @@ -111,6 +111,7 @@
From 4b1f823102d03bdcbae96e7a678352e46bbabfa6 Mon Sep 17 00:00:00 2001 From: well Date: Fri, 6 Dec 2024 14:13:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C=20-=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/parse_file/forms101.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/parse_file/forms101.py b/api/parse_file/forms101.py index bd205be4e8..5a2fac8081 100644 --- a/api/parse_file/forms101.py +++ b/api/parse_file/forms101.py @@ -238,7 +238,7 @@ def validate_med_exam_data(normalize_data: dict, inn_company) -> dict: errors.append("Подразделение не указано") if not normalize_data["gender"] in ["м", "ж"]: errors.append("Пол указан не верно") - if len(normalize_data["position"]) > 128: + if normalize_data["position"] and len(normalize_data["position"]) > 128: errors.append("Должность больше 128 символов") if errors: