yyuri commited on
Commit
a11f1bd
2 Parent(s): 51cf00a 998dd3f

conflict解消

Browse files
Files changed (1) hide show
  1. 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
- yes = "□"
52
- no = "☑"
53
- attachment = ""
54
  else:
55
- yes = "☑"
56
- no = "□"
57
- attachment = contents["添付資料"]
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
- "[yes]": yes,
111
- "[no]": no,
112
- "[attachment]": 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)