mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-23 11:22:21 +03:00
Reformat file
Signed-off-by: Albert Stefanov <aastefanov@outlook.com>
This commit is contained in:
parent
63d7fec8a7
commit
cf2b455bf1
@ -830,7 +830,13 @@ async def import_project(
|
||||
async for chunk in request.stream():
|
||||
await f.write(chunk)
|
||||
with open(temp_project_path, "rb") as f:
|
||||
project = await import_controller_project(controller, str(project_id), f, name=name, user=current_user.username)
|
||||
project = await import_controller_project(
|
||||
controller,
|
||||
str(project_id),
|
||||
f,
|
||||
name=name,
|
||||
user=current_user.username,
|
||||
)
|
||||
|
||||
log.info(f"Project '{project.name}' imported in {time.time() - begin:.4f} seconds")
|
||||
except OSError as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user