이모지 제거
This commit is contained in:
@ -37,7 +37,7 @@ def get_precipitation_summary():
|
|||||||
try:
|
try:
|
||||||
data = response.json()
|
data = response.json()
|
||||||
total_rainfall = 0.0
|
total_rainfall = 0.0
|
||||||
lines = [f"<p>📅 시간대별 강수량 :</p><ul>"]
|
lines = [f"<p>시간대별 강수량 :</p><ul>"]
|
||||||
|
|
||||||
for item in data['response']['body']['items']['item']:
|
for item in data['response']['body']['items']['item']:
|
||||||
if item['category'] == 'PCP' and item['fcstDate'] == TODAY:
|
if item['category'] == 'PCP' and item['fcstDate'] == TODAY:
|
||||||
@ -48,7 +48,7 @@ def get_precipitation_summary():
|
|||||||
total_rainfall += mm
|
total_rainfall += mm
|
||||||
|
|
||||||
lines.append("</ul>")
|
lines.append("</ul>")
|
||||||
lines.append(f"<p>🌧️ 영업시간 중 총 예상 강수량: <strong>{total_rainfall:.1f}mm</strong></p>")
|
lines.append(f"<p>영업시간 중 총 예상 강수량: <strong>{total_rainfall:.1f}mm</strong></p>")
|
||||||
|
|
||||||
return ''.join(lines)
|
return ''.join(lines)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user