fix: 히어로에서 비는 올 때만 알리고, 칸 글씨는 단어 단위로 줄바꿈
- '2시간 동안 비 · 안 와요' 칸을 없애고 그 자리는 미세먼지·자외선·달로 채움 (rain_known 은 쓰는 곳이 없어 삭제) - '2시간 동안 안 / 와요'처럼 말 중간에서 끊기지 않게 break-keep
This commit is contained in:
1 parent
00716844c3
commit
f2fb3a7dd2
4 files changed
+10
-11
No files matched your search
@@ -121,7 +121,7 @@ def _hero_input(now: datetime, slot: str, cur: Optional[WeatherHourly], now_w: O
|
||||
temps = [float(x.row.temp_c) for x in today.slots if x.row] if today else []
|
||||
rainy = [h for h in now_w.rain_hours if h.rain_type is not RainType.NONE] if now_w else []
|
||||
return HeroInput(
|
||||
now=now, night=slot in ("evening", "night"), rain_known=now_w is not None, rain_at=rainy[0].at if rainy else None,
|
||||
now=now, night=slot in ("evening", "night"), rain_at=rainy[0].at if rainy else None,
|
||||
air=AirGrade(now_w.air.grade) if now_w and now_w.air and now_w.air.grade is not None else None, uv=uv,
|
||||
temp_min=min(temps, default=None), temp_max=max(temps, default=None),
|
||||
temp=float(cur.temp_c) if cur else None, feels=float(cur.feels_c) if cur else None, discomfort=cur.discomfort_index if cur else None,
|
||||
|
||||
Reference in new issue
Block a user