Commit 6654b9fe authored by Hugo's avatar Hugo
Browse files

a

parent a28832e5
...@@ -141,11 +141,12 @@ async function agregateMonthAndYearData(data) { ...@@ -141,11 +141,12 @@ async function agregateMonthAndYearData(data) {
* Return an Array of agregated data * Return an Array of agregated data
*/ */
async function buildAgregatedData(data, doctype) { async function buildAgregatedData(data, doctype) {
log('info', 'entering buildAgregatedData')
let agregatedData = [] let agregatedData = []
for (let [key, value] of Object.entries(data)) { for (let [key, value] of Object.entries(data)) {
const data = await buildDataFromKey(doctype, key, value) const data = await buildDataFromKey(doctype, key, value)
const oldValue = await resetInProgressAggregatedData(data, doctype) const oldValue = await resetInProgressAggregatedData(data, doctype)
log("debug", "Dataload + oldvalue is " + data.load + " + " + oldValue + " -- makes dataload : " + (data.load += oldValue)) log('info', 'Dataload + oldvalue is ' + data.load + ' + ' + oldValue)
data.load += oldValue data.load += oldValue
agregatedData.push(data) agregatedData.push(data)
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment