API로 불러온 정보와 실제 정보가 다르므로, content 부분에 내용을 정리하지 않고 규칙만 명시하도록 임시 수정함.
This commit is contained in:
@ -156,11 +156,18 @@ def write_board(board, subject, content, mb_id, nickname, ca_name=None, file_lis
|
||||
# 메인 실행 함수
|
||||
# ---------------------------
|
||||
def main():
|
||||
# 기상청 API로 얻어오는 데이터와 캡처의 데이터가 다르므로 내용에 대해 업데이트 하지 않음.
|
||||
# 날씨 정보 문자열 얻기
|
||||
weather_content = get_precipitation_summary()
|
||||
#weather_content = get_precipitation_summary()
|
||||
|
||||
# MAIN['content'] 업데이트
|
||||
MAIN['content'] = weather_content
|
||||
#MAIN['content'] = weather_content
|
||||
|
||||
# 무료입장 조건에 대해서만 안내함.
|
||||
MAIN["content"] = """
|
||||
<p>Rainy Day 이벤트 적용안내</p>
|
||||
<p><font size="16"><b>10:00 ~ 22:00까지의 예보를 합산하며, ~1mm인 경우 0.5mm로 계산합니다.</b></font></p>
|
||||
"""
|
||||
|
||||
today = datetime.today().strftime('%Y%m%d')
|
||||
data_dir = '/data' # 파일 저장 및 업로드 디렉토리
|
||||
|
||||
Reference in New Issue
Block a user