mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Optimize appliance templates update from GitHub repository by only downloading when the repository
has been updated. Ref https://github.com/GNS3/gns3-gui/issues/2490
This commit is contained in:
1 parent
651d8280a7
commit
b7f9b865c8
4 files changed
+29
-26
No files matched your search
@@ -39,7 +39,7 @@ class ApplianceHandler:
|
||||
controller = Controller.instance()
|
||||
if request.query.get("update", "no") == "yes":
|
||||
yield from controller.download_appliance_templates()
|
||||
controller.load_appliance_templates()
|
||||
controller.load_appliance_templates()
|
||||
response.json([c for c in controller.appliance_templates.values()])
|
||||
|
||||
@Route.get(
|
||||
|
||||
Reference in new issue
Block a user