getSet and .sets REFACTORING
This commit is contained in:
1 parent
fe1cca1d75
commit
1dd4c5039b
6 files changed
+12
-12
No files matched your search
Binary file not shown.
@@ -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
@@ -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
@@ -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
@@ -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': {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user