Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
6dd850cf
Commit
6dd850cf
authored
6 years ago
by
Vytor Calixto
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_diagnosis_projection_routes' into development
parents
8924acb2
48d2e64b
No related branches found
No related tags found
2 merge requests
!150
Portal mec school
,
!145
v1.6.0
Pipeline
#16831
failed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/libs/routes/enrollment.js
+10
-0
10 additions, 0 deletions
src/libs/routes/enrollment.js
with
14 additions
and
0 deletions
CHANGELOG.md
+
4
−
0
View file @
6dd850cf
...
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
...
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
http://keepachangelog.com/
)
The format is based on
[
Keep a Changelog
](
http://keepachangelog.com/
)
and this project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
and this project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
## Unreleased
### Changed
-
Fix bug in diagnosis and projection routes
## 1.4.2 - 2018-07-23
## 1.4.2 - 2018-07-23
### Added
### Added
-
Added new url's in daily charge amount indicator
-
Added new url's in daily charge amount indicator
...
...
This diff is collapsed.
Click to expand it.
src/libs/routes/enrollment.js
+
10
−
0
View file @
6dd850cf
...
@@ -549,6 +549,10 @@ enrollmentApp.get('/diagnosis', rqf.parse(), (req, res, next) => {
...
@@ -549,6 +549,10 @@ enrollmentApp.get('/diagnosis', rqf.parse(), (req, res, next) => {
let
i
=
0
;
let
i
=
0
;
while
(
i
<
enrollments
.
length
)
{
while
(
i
<
enrollments
.
length
)
{
let
enrollment
=
enrollments
[
i
];
let
enrollment
=
enrollments
[
i
];
if
(
!
educationSchoolYear
[
enrollment
.
school_year_id
])
{
++
i
;
continue
;
}
let
educationLevelHash
=
''
+
enrollment
.
year
+
educationSchoolYear
[
enrollment
.
school_year_id
].
id
;
let
educationLevelHash
=
''
+
enrollment
.
year
+
educationSchoolYear
[
enrollment
.
school_year_id
].
id
;
let
schoolYearHash
=
''
+
enrollment
.
year
+
enrollment
.
school_year_id
;
let
schoolYearHash
=
''
+
enrollment
.
year
+
enrollment
.
school_year_id
;
...
@@ -748,12 +752,18 @@ enrollmentApp.get('/projection', rqf.parse(), (req, res, next) => {
...
@@ -748,12 +752,18 @@ enrollmentApp.get('/projection', rqf.parse(), (req, res, next) => {
}
}
}
}
console
.
log
(
educationSchoolYear
);
let
result
=
[];
let
result
=
[];
let
educationLevelSet
=
new
Set
();
let
educationLevelSet
=
new
Set
();
let
schoolYearSet
=
new
Set
();
let
schoolYearSet
=
new
Set
();
let
i
=
0
;
let
i
=
0
;
while
(
i
<
enrollments
.
length
)
{
while
(
i
<
enrollments
.
length
)
{
let
enrollment
=
enrollments
[
i
];
let
enrollment
=
enrollments
[
i
];
if
(
!
educationSchoolYear
[
enrollment
.
school_year_id
])
{
++
i
;
continue
;
}
let
educationLevelHash
=
''
+
enrollment
.
year
+
educationSchoolYear
[
enrollment
.
school_year_id
].
id
;
let
educationLevelHash
=
''
+
enrollment
.
year
+
educationSchoolYear
[
enrollment
.
school_year_id
].
id
;
let
schoolYearHash
=
''
+
enrollment
.
year
+
enrollment
.
school_year_id
;
let
schoolYearHash
=
''
+
enrollment
.
year
+
enrollment
.
school_year_id
;
...
...
This diff is collapsed.
Click to expand it.
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