Candle Analisys

This commit is contained in:
Luis Fernando Molina committed 2020-10-29 12:05:08 +01:00
1 parent 1262b339c6
commit 221cd70d53
3 files changed
+3 -11

No files matched your search

+2 -8
View File
@@ -380,12 +380,6 @@
let product = {}
product[variableName] = {}
/* Here is how we know if we are processing Yesterday. */
let positionedAtYesterday = false
if (processingDailyFiles) {
positionedAtYesterday = (record.current.end < currentDay.valueOf())
}
/* This is Loop Code */
try {
eval(dataBuildingProcedure.loop.javascriptCode.code)
@@ -423,9 +417,9 @@
results.push(product[variableName]);
}
/* While we are positioned at Yesterday, we keep updating this data structure. */
/* At the last instant of yesterday, we update the yesterday object. */
if (processingDailyFiles) {
if (positionedAtYesterday) {
if (record.current.end + 1 === currentDay.valueOf()) {
yesterday.variable = JSON.parse(JSON.stringify(variable))
}
}
-2
View File
@@ -40,8 +40,6 @@
try {
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> Entering function."); }
let products = {}
let mainDependency = {}
let processingDailyFiles