minor fix

main
Cizz22 7 months ago
parent c3f1088eda
commit 7a96089c8e

@ -35,6 +35,12 @@ async def get_all_simulation(db_session: DbSession, common: CommonParameters):
results = await get_all(common) results = await get_all(common)
return {
"data": results,
"status": "success",
"message": "Simulations result retrieved successfully",
}
@router.post("/run", response_model=StandardResponse[str]) @router.post("/run", response_model=StandardResponse[str])
async def run_simulations( async def run_simulations(

@ -24,7 +24,7 @@ active_simulations = {}
async def get_all(common: CommonParameters): async def get_all(common: CommonParameters):
query = select(AerosSimulation) query = select(AerosSimulation).where(AerosSimulation.status == "completed")
results = await search_filter_sort_paginate(model=query, **common) results = await search_filter_sort_paginate(model=query, **common)

Loading…
Cancel
Save