修复机场观测面板不显示 + 放宽 AMOS 展示条件
This commit is contained in:
@@ -651,14 +651,12 @@ export function AiPinnedCityCard({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{(detail?.amos || detail?.airport_current) ? (
|
<AmosRunwayPanel
|
||||||
<AmosRunwayPanel
|
amos={detail?.amos}
|
||||||
amos={detail.amos}
|
isEn={isEn}
|
||||||
isEn={isEn}
|
tempSymbol={tempSymbol}
|
||||||
tempSymbol={tempSymbol}
|
airportCurrent={detail?.airport_current ?? null}
|
||||||
airportCurrent={detail?.airport_current ?? null}
|
/>
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
|
|
||||||
<ModelEvidencePanel detail={detail} isEn={isEn} />
|
<ModelEvidencePanel detail={detail} isEn={isEn} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2487,7 +2487,7 @@ def _analyze(
|
|||||||
"mgm": mgm_data,
|
"mgm": mgm_data,
|
||||||
"mgm_nearby": raw.get("mgm_nearby", []),
|
"mgm_nearby": raw.get("mgm_nearby", []),
|
||||||
"nearby_source": raw.get("nearby_source") or ("mgm" if city.lower() in TURKISH_MGM_CITIES else "metar_cluster"),
|
"nearby_source": raw.get("nearby_source") or ("mgm" if city.lower() in TURKISH_MGM_CITIES else "metar_cluster"),
|
||||||
"amos": amos_data if amos_data and (amos_data.get("temp_c") is not None or amos_data.get("runway_obs") is not None) else None,
|
"amos": amos_data if amos_data and amos_data.get("source") else None,
|
||||||
"forecast": {
|
"forecast": {
|
||||||
"today_high": om_today,
|
"today_high": om_today,
|
||||||
"daily": forecast_daily,
|
"daily": forecast_daily,
|
||||||
|
|||||||
Reference in New Issue
Block a user