跑道观测推送时间修正为AMSC/AMOS观测时间,显示HH:MM格式
This commit is contained in:
@@ -990,7 +990,10 @@ def _run_high_freq_airport_cycle(
|
||||
|
||||
# 用观测数据时间而非当前本地时间
|
||||
airport_cur = city_weather.get("airport_current") or {}
|
||||
obs_local = airport_cur.get("obs_time") or city_weather.get("local_time") or ""
|
||||
amos_obs = (city_weather.get("amos") or {}).get("observation_time_local") or ""
|
||||
if amos_obs and len(str(amos_obs)) >= 16:
|
||||
amos_obs = str(amos_obs)[11:16] # "2026-05-15 17:32:00" → "17:32"
|
||||
obs_local = amos_obs or airport_cur.get("obs_time") or city_weather.get("local_time") or ""
|
||||
message = _build_airport_status_message(city, city_weather, deb_pred, obs_local)
|
||||
|
||||
sent = False
|
||||
|
||||
Reference in New Issue
Block a user