Spaces:
Running
Running
conflict解消
Browse files- src/utils.py +9 -9
src/utils.py
CHANGED
@@ -48,13 +48,13 @@ def output_deviation_notification_report(contents: Dict[str, str]) -> None:
|
|
48 |
template_path = "data/template/template_deviation_notification.docx"
|
49 |
|
50 |
if contents["添付資料"] == "なし":
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
else:
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
|
59 |
process_view = "□"
|
60 |
packaging = "□"
|
@@ -107,9 +107,9 @@ def output_deviation_notification_report(contents: Dict[str, str]) -> None:
|
|
107 |
"[proposed_measures]": contents["措置(回復措置・製品等に対する措置)の提案"],
|
108 |
"[measures_department]": contents["措置の実施部署"],
|
109 |
"[survey_response_deadline]": contents["調査回答期限(30営業日)"],
|
110 |
-
"[
|
111 |
-
"[
|
112 |
-
"[attachment]":
|
113 |
}
|
114 |
|
115 |
doc = replace_text_in_docx(template_path, replacements)
|
|
|
48 |
template_path = "data/template/template_deviation_notification.docx"
|
49 |
|
50 |
if contents["添付資料"] == "なし":
|
51 |
+
yes_attached_file = "□"
|
52 |
+
no_attached_file = "☑"
|
53 |
+
attached_file = ""
|
54 |
else:
|
55 |
+
yes_attached_file = "☑"
|
56 |
+
no_attached_file = "□"
|
57 |
+
attached_file = contents["添付資料"]
|
58 |
|
59 |
process_view = "□"
|
60 |
packaging = "□"
|
|
|
107 |
"[proposed_measures]": contents["措置(回復措置・製品等に対する措置)の提案"],
|
108 |
"[measures_department]": contents["措置の実施部署"],
|
109 |
"[survey_response_deadline]": contents["調査回答期限(30営業日)"],
|
110 |
+
"[yes_attached_file]": yes_attached_file,
|
111 |
+
"[no_attached_file]": no_attached_file,
|
112 |
+
"[attachment]": attached_file,
|
113 |
}
|
114 |
|
115 |
doc = replace_text_in_docx(template_path, replacements)
|