|
|
|
@ -132,10 +132,10 @@ async def import_aro_project(*, db_session: DbSession, aeros_project_in: AerosPr
|
|
|
|
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e)
|
|
|
|
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# await _initialize_default_project_data(
|
|
|
|
await _initialize_default_project_data(
|
|
|
|
# db_session=db_session,
|
|
|
|
db_session=db_session,
|
|
|
|
# project_name=filename
|
|
|
|
project_name=filename
|
|
|
|
# )
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
async def fetch_aro_record(*, db_session: DbSession):
|
|
|
|
async def fetch_aro_record(*, db_session: DbSession):
|
|
|
|
stmt = select(AerosProject).order_by(desc(AerosProject.updated_at)).limit(1)
|
|
|
|
stmt = select(AerosProject).order_by(desc(AerosProject.updated_at)).limit(1)
|
|
|
|
@ -170,11 +170,11 @@ async def _initialize_default_project_data(
|
|
|
|
project_name=project_name
|
|
|
|
project_name=project_name
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Save default simulation node
|
|
|
|
# # Save default simulation node
|
|
|
|
await save_default_simulation_node(
|
|
|
|
# await save_default_simulation_node(
|
|
|
|
db_session=db_session,
|
|
|
|
# db_session=db_session,
|
|
|
|
project_name=project_name
|
|
|
|
# project_name=project_name
|
|
|
|
)
|
|
|
|
# )
|
|
|
|
|
|
|
|
|
|
|
|
await db_session.commit()
|
|
|
|
await db_session.commit()
|
|
|
|
|
|
|
|
|
|
|
|
|