From b2bd9f081e8d674ba48490ff62a0181d9536e25a Mon Sep 17 00:00:00 2001 From: KWON Date: Fri, 27 Jun 2025 14:55:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=85=80=20=EC=97=AC=EB=B0=B1=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/weather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/weather.py b/data/weather.py index ba890b0..5f07a3f 100644 --- a/data/weather.py +++ b/data/weather.py @@ -38,8 +38,8 @@ def get_precipitation_summary(): data = response.json() total_rainfall = 0.0 lines = [f'

[시간대별 강수량]

'] - lines.append(f'') - lines.append(f'') + lines.append(f'
시간강수량
') + lines.append(f'') for item in data['response']['body']['items']['item']: if item['category'] == 'PCP' and item['fcstDate'] == TODAY: @@ -47,7 +47,7 @@ def get_precipitation_summary(): if 900 < int(time) < 2300: mm = parse_precip(item['fcstValue']) time_str = f"{time[:2]}:{time[2:]}" # '11:00' - lines.append(f'') + lines.append(f'') total_rainfall += mm
시간강수량
{time_str}{mm}mm
{time_str}{mm}mm