워드 템플릿 생성 개선

This commit is contained in:
peregr1nus
2025-12-10 17:42:02 +09:00
parent 47698cc114
commit 027a588003
2 changed files with 199 additions and 94 deletions

4
app.py
View File

@@ -164,7 +164,9 @@ def step5():
# 워드 문서 생성
try:
cult_name = all_data['basic_info'].get('cult', '기타')
output_path = word_processor.generate_document(all_data, cult_name)
# 이단별 상세점검 문항 가져오기
cult_questions = app.config.get('CULT_DETAIL_QUESTIONS', {}).get(cult_name, [])
output_path = word_processor.generate_document(all_data, cult_name, cult_questions)
# 구글 드라이브 업로드
if drive_uploader and app.config['GOOGLE_DRIVE_FOLDER_ID']: