'commit'
This commit is contained in:
@@ -377,8 +377,7 @@ async def analyze_prices_background(service, station_name, image_paths):
|
||||
if all_prices:
|
||||
all_prices = [p for p in all_prices if isinstance(p, dict)]
|
||||
all_prices.sort(key=lambda x: x.get("start", "00:00"))
|
||||
hourly_schedule = ReadImageKit.expand_schedule_to_24h(all_prices)
|
||||
await service.process_price_detail_data(station_name, hourly_schedule)
|
||||
await service.process_price_detail_data(station_name, all_prices)
|
||||
logger.info(f"后台处理完成: {station_name} 的分时价格已保存。")
|
||||
|
||||
# 处理完成后清理图片,释放磁盘空间
|
||||
|
||||
Reference in New Issue
Block a user