From b142bc4172e1cc45b40f0ab7f8c78df7b5170280 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 12 Jun 2020 12:16:41 +0200 Subject: [PATCH] Code Mantainance --- Historic-OHLCVs/User.Bot.js | 2 +- Historic-Trades/User.Bot.js | 2 +- this.bot.config.json | 51 ++++--------------------------------- 3 files changed, 7 insertions(+), 48 deletions(-) diff --git a/Historic-OHLCVs/User.Bot.js b/Historic-OHLCVs/User.Bot.js index 21d04bd15..75f332fca 100644 --- a/Historic-OHLCVs/User.Bot.js +++ b/Historic-OHLCVs/User.Bot.js @@ -151,7 +151,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, FILE_S try { let reportKey; - reportKey = "Masters" + "-" + "Exchange-Raw-Data" + "-" + "Historic-OHLCVs" + "-" + "dataSet.V1"; + reportKey = "Masters" + "-" + "Exchange-Raw-Data" + "-" + "Historic-OHLCVs" if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getContextVariables -> reportKey = " + reportKey); } if (statusDependencies.statusReports.get(reportKey).status === "Status Report is corrupt.") { diff --git a/Historic-Trades/User.Bot.js b/Historic-Trades/User.Bot.js index 8add387f3..dfa816cf6 100644 --- a/Historic-Trades/User.Bot.js +++ b/Historic-Trades/User.Bot.js @@ -136,7 +136,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, FILE_S try { let reportKey; - reportKey = "Masters" + "-" + "Exchange-Raw-Data" + "-" + "Historic-Trades" + "-" + "dataSet.V1"; + reportKey = "Masters" + "-" + "Exchange-Raw-Data" + "-" + "Historic-Trades" if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getContextVariables -> reportKey = " + reportKey); } if (statusDependencies.statusReports.get(reportKey).status === "Status Report is corrupt.") { diff --git a/this.bot.config.json b/this.bot.config.json index c2ca69340..fcfcc6eaa 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -2,14 +2,8 @@ "displayName": "Exchange Raw Data", "codeName": "Exchange-Raw-Data", "type": "Sensor Bot", - "version": { - "major": 1, - "minor": 0, - "patch": 0 - }, "dataMine": "Masters", "profilePicture": "Exchange Raw Data.png", - "dataSetVersion": "dataSet.V1", "processes": [ { "name": "Live-Trades", @@ -42,12 +36,7 @@ { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, - "process": "Live-Trades", - "dataSetVersion": "dataSet.V1" + "process": "Live-Trades" } ] }, @@ -82,22 +71,12 @@ { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, - "process": "Live-Trades", - "dataSetVersion": "dataSet.V1" + "process": "Live-Trades" }, { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, - "process": "Historic-Trades", - "dataSetVersion": "dataSet.V1" + "process": "Historic-Trades" } ] }, @@ -132,44 +111,24 @@ { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, "process": "Live-Trades", - "dataSetVersion": "dataSet.V1", "waitUntilNextUpdate": true }, { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, - "process": "Historic-Trades", - "dataSetVersion": "dataSet.V1" + "process": "Historic-Trades" }, { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, "process": "Hole-Fixing", - "dataSetVersion": "dataSet.V1", "dataSetSection": "Month" }, { "dataMine": "Masters", "bot": "Exchange-Raw-Data", - "botVersion": { - "major": 1, - "minor": 0 - }, - "process": "Hole-Fixing", - "dataSetVersion": "dataSet.V1" + "process": "Hole-Fixing" } ] }