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
Harbor 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
2d6531e2
There was a problem fetching the pipeline summary.
Commit
2d6531e2
authored
6 years ago
by
Vytor Calixto
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix_v1.3.1'
parents
94918fc6
dec47a22
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/libs/routes/classroomCount.js
+7
-1
7 additions, 1 deletion
src/libs/routes/classroomCount.js
with
11 additions
and
1 deletion
CHANGELOG.md
+
4
−
0
View file @
2d6531e2
...
...
@@ -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/
)
and this project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
## 1.3.1 - 2018-06-19
### Changed
-
Fixed bug with Federal District and missing cities in classroom count
## 1.3.0 - 2018-06-18
### Added
-
Daily charge amount route
...
...
This diff is collapsed.
Click to expand it.
src/libs/routes/classroomCount.js
+
7
−
1
View file @
2d6531e2
...
...
@@ -246,6 +246,7 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => {
let
result
=
[];
let
hashSet
=
new
Set
();
let
enrollments
=
[...
req
.
enrollment
];
let
leftovers
=
[];
while
(
i
<
req
.
classroom
.
length
)
{
let
classroom
=
req
.
classroom
[
i
];
// Cria hash única para cada espacialidade, dado um ano
...
...
@@ -305,7 +306,12 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => {
enrollmentMatch
=
false
;
continue
;
}
else
if
(
classroom
.
city_name
>
enrollment
.
city_name
)
{
++
j
;
let
enrollmentHash
=
''
+
enrollment
.
year
+
enrollment
.
state_id
+
enrollment
.
city_id
;
if
(
hashSet
.
has
(
enrollmentHash
))
{
leftovers
.
push
(
enrollments
.
splice
(
j
,
1
));
// Para inspeção, adiciona os que "sobram" no array de sobras
}
else
{
++
j
;
}
continue
;
}
...
...
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