|
|
|
@ -38,9 +38,9 @@ active_simulations = {}
|
|
|
|
|
|
|
|
|
|
|
|
# Get Data Service
|
|
|
|
# Get Data Service
|
|
|
|
async def get_all(common: CommonParameters, status):
|
|
|
|
async def get_all(common: CommonParameters, status):
|
|
|
|
query = select(AerosSimulation)
|
|
|
|
query = select(AerosSimulation).order_by(desc(AerosSimulation.created_at))
|
|
|
|
if status:
|
|
|
|
if status:
|
|
|
|
query = query.where(AerosSimulation.status == "completed").order_by(desc(AerosSimulation.created_at))
|
|
|
|
query = query.where(AerosSimulation.status == "completed")
|
|
|
|
|
|
|
|
|
|
|
|
results = await search_filter_sort_paginate(model=query, **common)
|
|
|
|
results = await search_filter_sort_paginate(model=query, **common)
|
|
|
|
|
|
|
|
|
|
|
|
|