From 385bb5290d8d2f85875beb412123ceb0c5456ffa Mon Sep 17 00:00:00 2001 From: KWON Date: Fri, 27 Jun 2025 15:11:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EB=9D=BC=EC=9D=B8=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=EC=9D=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/weather.py | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/data/weather.py b/data/weather.py index fc25c76..79a3ff1 100644 --- a/data/weather.py +++ b/data/weather.py @@ -39,26 +39,13 @@ def get_precipitation_summary(retry=True): total_rainfall = 0.0 lines = [ - '', - '
', - '

[시간대별 강수량]

', - '', - '' + '
', + '

[시간대별 강수량]

', + '
시간강수량
', + '', + '', + '', + '' ] for item in data['response']['body']['items']['item']: @@ -67,7 +54,7 @@ def get_precipitation_summary(retry=True): 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 lines.append('
시간강수량
{time_str}{mm}mm
{time_str}{mm}mm
')