mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
List elements when a project is closed
This commit is contained in:
1 parent
a27db6b4eb
commit
5092bd2fdf
8 files changed
+43
-4
No files matched your search
@@ -70,6 +70,9 @@ async def get_links(project_id: UUID) -> List[schemas.Link]:
|
||||
"""
|
||||
|
||||
project = await Controller.instance().get_loaded_project(str(project_id))
|
||||
if project.status == "closed":
|
||||
# allow to retrieve links from a closed project
|
||||
return project.links.values()
|
||||
return [v.asdict() for v in project.links.values()]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user