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