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
6654b9fe
Commit
6654b9fe
authored
4 years ago
by
Hugo
Browse files
Options
Downloads
Patches
Plain Diff
a
parent
a28832e5
No related branches found
No related tags found
1 merge request
!4
Dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/index.js
+2
-1
2 additions, 1 deletion
src/index.js
with
2 additions
and
1 deletion
src/index.js
+
2
−
1
View file @
6654b9fe
...
@@ -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
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Hugo NOUTS
@hnouts
mentioned in commit
9acff077
·
4 years ago
mentioned in commit
9acff077
mentioned in commit 9acff07704c406996fe2b1e9f48b7a213715dce0
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