|
|
|
@ -180,7 +180,7 @@ async def get_latest_sim_results_by_pattern(db_session: DbSession, pattern: str)
|
|
|
|
trip_query = select(AerosSimulationCalcResult).join(AerosNode).where(
|
|
|
|
trip_query = select(AerosSimulationCalcResult).join(AerosNode).where(
|
|
|
|
AerosSimulationCalcResult.aeros_simulation_id == simulation.id,
|
|
|
|
AerosSimulationCalcResult.aeros_simulation_id == simulation.id,
|
|
|
|
AerosNode.node_type == 'RegularNode'
|
|
|
|
AerosNode.node_type == 'RegularNode'
|
|
|
|
).order_by(AerosSimulationCalcResult.num_events.desc()).limit(5)
|
|
|
|
).options(selectinload(AerosSimulationCalcResult.aeros_node)).order_by(AerosSimulationCalcResult.num_events.desc()).limit(5)
|
|
|
|
|
|
|
|
|
|
|
|
trip_res_exec = await db_session.execute(trip_query)
|
|
|
|
trip_res_exec = await db_session.execute(trip_query)
|
|
|
|
trip_results = trip_res_exec.scalars().all()
|
|
|
|
trip_results = trip_res_exec.scalars().all()
|
|
|
|
|