Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
LLLE_Project
grdf-konnector
Commits
6314e263
Commit
6314e263
authored
Nov 27, 2020
by
Yoan VALLET
Browse files
add debug logs
parent
947cca74
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.js
View file @
6314e263
...
...
@@ -136,8 +136,13 @@ async function getData(token, idPCE) {
async
function
getActualDailyLoadData
()
{
log
(
'
debug
'
,
'
Retrieve previous daily data
'
)
const
result
=
await
cozyClient
.
data
.
findAll
(
'
com.grandlyon.grdf.day
'
)
log
(
'
debug
'
,
result
)
return
result
?
result
:
[]
if
(
result
&&
result
.
length
>
0
)
{
const
formatedData
=
formateData
(
result
)
log
(
"
debug
"
,
"
FORMATED OLD DATA
"
)
log
(
"
debug
"
,
formatedData
)
return
formatedData
}
return
[]
}
/**
...
...
Yoan VALLET
@yvallet
mentioned in commit
2b0e0d42
·
Nov 27, 2020
mentioned in commit
2b0e0d42
mentioned in commit 2b0e0d42d3af951583c446fc1e37d76baad736d6
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment