getSet and .sets REFACTORING

This commit is contained in:
Luis Fernando Molina committed 2018-04-16 09:55:35 +02:00
1 parent fe1cca1d75
commit 1dd4c5039b
6 files changed
+12 -12

No files matched your search

Binary file not shown.
+2 -2
View File
@@ -45,9 +45,9 @@ function newCompetitionStorage(pName) {
let bot = ecosystem.getBot(devTeam, pCompetition.participants[i].bot)
let product = ecosystem.getProduct(bot, "Trading History");
for (let i = 0; i < product.sets.length; i++) {
for (let i = 0; i < product.dataSets.length; i++) {
let thisSet = product.sets[i];
let thisSet = product.dataSets[i];
switch (thisSet.type) {
+5 -5
View File
@@ -8,7 +8,7 @@ function newEcosystem() {
getTeams: getTeams,
getBot: getBot,
getProduct: getProduct,
getSet: getSet,
getDataSet: getDataSet,
getExchange: getExchange,
initialize: initialize
}
@@ -84,13 +84,13 @@ function newEcosystem() {
}
}
function getSet(pProduct, pSetCodeName) {
function getDataSet(pProduct, pSetCodeName) {
for (let i = 0; i < pProduct.sets.length; i++) {
for (let i = 0; i < pProduct.dataSets.length; i++) {
if (pProduct.sets[i].codeName === pSetCodeName) {
if (pProduct.dataSets[i].codeName === pSetCodeName) {
return pProduct.sets[i];
return pProduct.dataSets[i];
}
}
}
+2 -2
View File
@@ -51,9 +51,9 @@ function newProductStorage(pName) {
let dataSetsToLoad = 0;
let dataSetsLoaded = 0;
for (let i = 0; i < pProduct.sets.length; i++) {
for (let i = 0; i < pProduct.dataSets.length; i++) {
let thisSet = pProduct.sets[i];
let thisSet = pProduct.dataSets[i];
switch (thisSet.type) {
case 'Market Files': {
+2 -2
View File
@@ -174,9 +174,9 @@ function newTimelineChart() {
*/
for (let i = 0; i < pProductCard.product.sets.length; i++) {
for (let i = 0; i < pProductCard.product.dataSets.length; i++) {
let thisSet = pProductCard.product.sets[i];
let thisSet = pProductCard.product.dataSets[i];
switch (thisSet.type) {
case 'Market Files': {
+1 -1
View File
@@ -6,7 +6,7 @@ if (CONSOLE_LOG === true) {
}
const DEBUG_MODE = false; // This forces the server to read Plotters from the local drive.
const DEBUG_MODE = true; // This forces the server to read Plotters from the local drive.
if (CONSOLE_LOG === true && DEBUG_MODE === true) {