|
|
|
@ -175,21 +175,20 @@ async def import_aro_project(*, db_session: DbSession, aeros_project_in: AerosPr
|
|
|
|
|
|
|
|
|
|
|
|
await db_session.commit()
|
|
|
|
await db_session.commit()
|
|
|
|
|
|
|
|
|
|
|
|
aro_json = json.dumps(aro_path)
|
|
|
|
# aro_json = json.dumps(aro_path)
|
|
|
|
|
|
|
|
|
|
|
|
# Update path to AEROS APP
|
|
|
|
# Update path to AEROS APP
|
|
|
|
# Example BODy "C/dsad/dsad.aro"
|
|
|
|
# Example BODy "C/dsad/dsad.aro"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
response = await aeros_post(
|
|
|
|
response = await aeros_post(
|
|
|
|
"/api/Project/ImportAROFile",
|
|
|
|
"/api/Project/ImportAROFile",
|
|
|
|
json_data=aro_json,
|
|
|
|
json=aro_path,
|
|
|
|
headers={"Content-Type": "application/json"},
|
|
|
|
headers={"Content-Type": "application/json"},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# response.raise_for_status()
|
|
|
|
response.raise_for_status()
|
|
|
|
response_json = response.json()
|
|
|
|
response_json = response.json()
|
|
|
|
|
|
|
|
|
|
|
|
raise Exception(response_json)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as e:
|
|
|
|
raise HTTPException(
|
|
|
|
raise HTTPException(
|
|
|
|
|