config.py import 수정

This commit is contained in:
2025-06-26 16:33:57 +09:00
parent c3088e042d
commit b27dbdd461
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
0 9 * * * python3 /data/gnu_autoupload.py >> /var/log/gnu_autoupload.log 2>&1
0 9 * * * python3 /data/gnu_autoupload.py >> /proc/1/fd/1 2>&1

View File

@ -1,10 +1,10 @@
import pymysql, ftputil, hashlib, os, sys
from datetime import datetime
from PIL import Image
import config import *
import subprocess
import time
import os
from config import DB_CONFIG, FTP_CONFIG, MAIN
# 오늘 날짜 기반으로 파일명 생성
today_str = datetime.today().strftime('%Y%m%d')
@ -28,6 +28,8 @@ FTP_CONFIG['UPLOAD_DIR'] = f"/www/data/file/{MAIN['board']}/"
MAIN['subject'] = f"[{datetime.now().strftime('%Y-%m-%d')}] 날씨 정보"
MAIN['file1'] = MAIN['file2'] = weather_file
def file_type(x): # 그누보드의 bf_type 값을 반환하는 함수입니다. (디폴트 : 0)
return {'gif' : '1', 'jpeg' : '2', 'jpg' : '2', 'png' : '3', 'swf' : '4', 'psd' : '5',
'bmp' : '6', 'tif' : '7', 'tiff' : '7', 'jpc' : '9', 'jp2' : '10', 'jpx' : '11',