코드 리팩토링 및 README 수정
This commit is contained in:
4
app.py
4
app.py
@@ -222,7 +222,6 @@ def step5():
|
||||
output_path = word_processor.generate_document(all_data, cult_name, cult_questions)
|
||||
|
||||
# 구글 드라이브 업로드
|
||||
upload_success = False
|
||||
if drive_uploader and app.config['GOOGLE_DRIVE_FOLDER_ID']:
|
||||
upload_filename = f"교리점검표_{all_data['basic_info'].get('name', '무명')}_{datetime.now().strftime('%Y%m%d_%H%M%S')}.docx"
|
||||
logger.info("구글 드라이브 업로드 시도 | file=%s, folder=%s", upload_filename, app.config['GOOGLE_DRIVE_FOLDER_ID'])
|
||||
@@ -233,7 +232,6 @@ def step5():
|
||||
app.config['GOOGLE_DRIVE_FOLDER_ID']
|
||||
)
|
||||
logger.info("구글 드라이브 업로드 성공 | file_id=%s", file_id)
|
||||
upload_success = True
|
||||
# 업로드 성공 시 로컬 파일 삭제
|
||||
try:
|
||||
os.remove(output_path)
|
||||
@@ -269,8 +267,6 @@ def step5():
|
||||
'success': False,
|
||||
'message': f'오류가 발생했습니다: {str(e)}'
|
||||
}), 500
|
||||
|
||||
return render_template('step5.html')
|
||||
|
||||
@app.route('/complete')
|
||||
@require_auth
|
||||
|
||||
Reference in New Issue
Block a user