Commit cb8024d5 authored by Hugo's avatar Hugo
Browse files

stopped d-4

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