[feat] solution: 날씨 조건 세분화,
공식채널 단일화, 한일옥 거리 반영 날씨 조건을 7종으로 세분화, 축제 종료 여부와 무관하게 상시 노출, '지역 읽기'갈래 축소, 야놀자(NOL) 브랜드명 제거.
This commit is contained in:
1 parent
29af37f158
commit
1f26bc7065
23 files changed
+421
-185
No files matched your search
@@ -509,10 +509,22 @@ def _weather_condition(code) -> str:
|
||||
return "맑음"
|
||||
if 1 <= value <= 3:
|
||||
return "구름많음"
|
||||
if 50 <= value <= 69:
|
||||
if value in (45, 48):
|
||||
return "안개"
|
||||
if value in (51, 53, 55):
|
||||
return "이슬비"
|
||||
if value in (56, 57, 66, 67):
|
||||
return "어는비"
|
||||
if value in (61, 63):
|
||||
return "비"
|
||||
if value == 65:
|
||||
return "강한비"
|
||||
if 70 <= value <= 79:
|
||||
return "눈"
|
||||
if value in (80, 81, 82, 85, 86):
|
||||
return "소나기"
|
||||
if 95 <= value <= 99:
|
||||
return "뇌우"
|
||||
return "흐림"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user