fix(comparison): 派生 best 排除缺菜店, 避免虚低价当"最低价" #176
Reference in New Issue
Block a user
Delete Branch "fix/comparison-exclude-short-stores"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pricebot comparison_results[].rank 是纯价格排序(含缺菜店), server 派生 best
若照单全收, 会把缺菜(漏菜)店的虚低总价当 best_price → 记录页戴"最低"红框 +
算出虚假省额。
skipped_dish_count 排除缺菜店; 源平台永远全菜, 全目标缺菜时回落到源
(is_source_best、saved=0), 不虚报省额。
isinstance 兜底, 值非 dict 时按"不缺菜"处理, 不打 500。
覆盖 _derive 与 _derive_from_results 两条路径。
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com