Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
egl_konnector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
egl_konnector
Commits
06f084ff
Commit
06f084ff
authored
4 years ago
by
Hugo
Browse files
Options
Downloads
Patches
Plain Diff
load: value.ValeurIndex - data[index - 1].ValeurIndex,
parent
88c3b97c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
load: value.ValeurIndex - data[index - 1].ValeurIndex,
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifest.konnector
+1
-1
1 addition, 1 deletion
manifest.konnector
package.json
+1
-1
1 addition, 1 deletion
package.json
src/index.js
+2
-2
2 additions, 2 deletions
src/index.js
with
4 additions
and
4 deletions
manifest.konnector
+
1
−
1
View file @
06f084ff
{
"version": "
0.2.2
",
"version": "
1.0.0
",
"name": "EGL",
"type": "konnector",
"language": "node",
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
06f084ff
{
"name"
:
"egl"
,
"version"
:
"
0.2.2
"
,
"version"
:
"
1.0.0
"
,
"description"
:
""
,
"repository"
:
{
"type"
:
"git"
,
...
...
This diff is collapsed.
Click to expand it.
src/index.js
+
2
−
2
View file @
06f084ff
...
...
@@ -239,9 +239,9 @@ function format(response) {
log
(
'
info
'
,
'
filtered size is :
'
+
dataLen
)
const
mapData
=
data
.
map
((
value
,
index
)
=>
{
const
time
=
moment
(
value
.
DateReleve
,
moment
.
ISO_8601
)
if
(
index
+
1
<
dataLen
)
{
if
(
index
!==
0
&&
index
<
dataLen
)
{
return
{
load
:
data
[
index
+
1
].
ValeurIndex
-
value
.
ValeurIndex
,
load
:
value
.
ValeurIndex
-
data
[
index
-
1
]
.
ValeurIndex
,
year
:
parseInt
(
time
.
format
(
'
YYYY
'
)),
month
:
parseInt
(
time
.
format
(
'
M
'
)),
day
:
parseInt
(
time
.
format
(
'
D
'
)),
...
...
This diff is collapsed.
Click to expand it.
Hugo NOUTS
@hnouts
mentioned in commit
d4ec6bc5
·
4 years ago
mentioned in commit
d4ec6bc5
mentioned in commit d4ec6bc548f179fce43b67f83cdc1478c70c8d51
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment