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
')