feat: 히어로 칸을 지금·습도·불쾌지수·상황 1칸으로 — 습도·불쾌지수 늘 표시
This commit is contained in:
1 parent
97ebfe2d36
commit
3a73a44cb0
7 files changed
+31
-23
No files matched your search
@@ -144,7 +144,7 @@ def _hero_input(now: datetime, slot: str, cur: Optional[WeatherHourly], now_w: O
|
||||
rain_later_at=later, today_known=bool(ahead),
|
||||
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,
|
||||
temp=float(cur.temp_c) if cur else None, feels=float(cur.feels_c) if cur else None,
|
||||
moon=phase_name(_tonight(now)),
|
||||
)
|
||||
|
||||
@@ -430,6 +430,7 @@ class FeedService:
|
||||
return Hero(
|
||||
now_at=now, sky_mode=_SKY_MODE[slot],
|
||||
temp_c=float(cur.temp_c) if cur else None, feels_c=float(cur.feels_c) if cur else None,
|
||||
humidity=cur.humidity if cur else None,
|
||||
discomfort=cur.discomfort_index if cur else None, discomfort_label=_discomfort_label(cur.discomfort_index) if cur else None,
|
||||
rain_2h_text=now_w.rain_2h_text if now_w else None, will_rain_2h=now_w.will_rain_2h if now_w else None,
|
||||
weather_score=board.weather_score if board else None, top1=_top(top) if top else None, bubble=bubble,
|
||||
|
||||
Reference in new issue
Block a user