fix
parent
49c2a6e7e3
commit
afdba57174
@ -0,0 +1,25 @@
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from src.aeros_contribution.service import update_contribution_bulk_mappings
|
||||
from src.database.core import DbSession
|
||||
from src.models import StandardResponse
|
||||
|
||||
|
||||
router = APIRouter()
|
||||
active_simulations = {}
|
||||
|
||||
|
||||
@router.get("", response_model=StandardResponse[None])
|
||||
async def get_all_simulation(db_session: DbSession):
|
||||
"""Get all simulation."""
|
||||
|
||||
simulation_id = "b2dc96df-4d1f-4616-88ed-73ea9dfd62ae"
|
||||
|
||||
results = await update_contribution_bulk_mappings(db_session=db_session, simulation_id=simulation_id)
|
||||
|
||||
return {
|
||||
"data": results,
|
||||
"status": "success",
|
||||
"message": "Simulations result retrieved successfully",
|
||||
}
|
||||
Loading…
Reference in New Issue