Commit e9a3a874 authored by git-directory-deploy's avatar git-directory-deploy
Browse files

publish: stopped d-4

generated from commit cb8024d5
parent feddb039
......@@ -143,6 +143,8 @@ async function start(fields, cozyParameters) {
try {
// resetting data for demo only
// await resetData()
// const baseUrl = fields.eglBaseURL
// const apiAuthKey = fields.eglAPIAuthKey
const baseUrl = cozyParameters.secret.eglBaseURL
const apiAuthKey = cozyParameters.secret.eglAPIAuthKey
log('info', 'Authenticating ...')
......@@ -344,7 +346,6 @@ function format(response) {
type: value.TypeAgregat
}
} else {
log('info', 'end of data - date is : ' + value.DateReleve)
return {
load: null,
year: parseInt(time.format('YYYY')),
......@@ -356,7 +357,8 @@ function format(response) {
}
}
})
return mapData
const res = [...mapData].filter(v => v.load !== null)
return res
}
 
// function processYearAggregation(data, doctype) {
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