From c933b63f4c4dbbdfe5d1758fae8eee6c9db603b2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 24 Nov 2020 13:16:38 +0100 Subject: [PATCH] Install and Uninstall Market finished --- .../Function-Libraries/CryptoEcosystemFunctions.js | 6 +++--- Projects/Superalgos/Function-Libraries/TaskFunctions.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Projects/Superalgos/Function-Libraries/CryptoEcosystemFunctions.js b/Projects/Superalgos/Function-Libraries/CryptoEcosystemFunctions.js index 5dab88619..4b04fea8a 100644 --- a/Projects/Superalgos/Function-Libraries/CryptoEcosystemFunctions.js +++ b/Projects/Superalgos/Function-Libraries/CryptoEcosystemFunctions.js @@ -291,7 +291,7 @@ function newSuperalgosFunctionLibraryCryptoEcosystemFunctions() { function installTheRestOfTheBranch(projectDataTasks) { let exchangeDataTasks = UI.projects.superalgos.utilities.children.findOrCreateChildWithReference(projectDataTasks, 'Exchange Data Tasks', cryptoExchange) - exchangeDataTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_90 + exchangeDataTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 let marketDataTask = UI.projects.superalgos.utilities.children.findAndRecreateChildWithReference(exchangeDataTasks, 'Market Data Tasks', market, rootNodes) UI.projects.superalgos.utilities.menu.menuClick(marketDataTask, 'Add Missing Data Mine Tasks', true) @@ -324,7 +324,7 @@ function newSuperalgosFunctionLibraryCryptoEcosystemFunctions() { function installTheRestOfTheBranch(projectLearningTasks) { let exchangeLearningTasks = UI.projects.superalgos.utilities.children.findOrCreateChildWithReference(projectLearningTasks, 'Exchange Learning Tasks', cryptoExchange) - exchangeLearningTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_90 + exchangeLearningTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 let marketLearningTask = UI.projects.superalgos.utilities.children.findAndRecreateChildWithReference(exchangeLearningTasks, 'Market Learning Tasks', market, rootNodes) UI.projects.superalgos.utilities.menu.menuClick(marketLearningTask, 'Add Missing Learning Mine Tasks', true) @@ -371,7 +371,7 @@ function newSuperalgosFunctionLibraryCryptoEcosystemFunctions() { function installTheRestOfTheBranch(projectTradingTasks) { let exchangeTradingTasks = UI.projects.superalgos.utilities.children.findOrCreateChildWithReference(projectTradingTasks, 'Exchange Trading Tasks', cryptoExchange) - exchangeTradingTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_90 + exchangeTradingTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 let marketTradingTask = UI.projects.superalgos.utilities.children.findAndRecreateChildWithReference(exchangeTradingTasks, 'Market Trading Tasks', market, rootNodes) UI.projects.superalgos.utilities.menu.menuClick(marketTradingTask, 'Add Missing Trading Mine Tasks', true) diff --git a/Projects/Superalgos/Function-Libraries/TaskFunctions.js b/Projects/Superalgos/Function-Libraries/TaskFunctions.js index a958acdee..31bd7af96 100644 --- a/Projects/Superalgos/Function-Libraries/TaskFunctions.js +++ b/Projects/Superalgos/Function-Libraries/TaskFunctions.js @@ -723,8 +723,9 @@ function newSuperalgosFunctionLibraryTaskFunctions() { if (node.payload.parentNode.payload.parentNode === undefined) { return } if (node.payload.parentNode.payload.parentNode.payload === undefined) { return } if (node.payload.parentNode.payload.parentNode.payload.parentNode === undefined) { return } + if (node.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode === undefined) { return } - let environment = node.payload.parentNode.payload.parentNode.payload.parentNode + let environment = node.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode let session switch (environment.type) {