|
|
|
|
@ -43,11 +43,23 @@ async def import_aro_project(*, db_session: DbSession):
|
|
|
|
|
project_name = "trialapi"
|
|
|
|
|
## save File to windows app
|
|
|
|
|
# Output is string of file path, examole
|
|
|
|
|
# # Example response "C/dsad/dsad.aro"
|
|
|
|
|
# try:
|
|
|
|
|
# response = await client.post(
|
|
|
|
|
# f"{windows_BASE_URL}/upload",
|
|
|
|
|
# json=f"/",
|
|
|
|
|
# headers={"Content-Type": "application/json"},
|
|
|
|
|
# )
|
|
|
|
|
# response.raise_for_status()
|
|
|
|
|
# except Exception as e:
|
|
|
|
|
# raise HTTPException(
|
|
|
|
|
# status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e)
|
|
|
|
|
# )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
aro_path = r"C:/Users/user/Documents/Aeros/sample_project.aro"
|
|
|
|
|
|
|
|
|
|
aeros_project = AerosProject(project_name=project_name, aro_file_path=aro_path)
|
|
|
|
|
|
|
|
|
|
db_session.add(aeros_project)
|
|
|
|
|
await db_session.commit()
|
|
|
|
|
|
|
|
|
|
|