Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김윤지
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김주희
2019-06-06 21:35:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d830e5e32d3d875c6cac24e1cb6a6c5dead27bda
d830e5e3
1 parent
41b897ea
대기오염 api 설정 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
routes/index.js
routes/index.js
View file @
d830e5e
...
...
@@ -28,6 +28,7 @@ router.get('/name/:name/birth/:birth', (req, res) => {
var
lhurtArr
=
new
Array
();
//경상자수
var
occurArr
=
new
Array
();
//총 발생수
////////////////////////////////////////
var
airArr
=
new
Array
();
//대기오염 지수
// 이전 10분간 데이터 찾기
...
...
@@ -52,6 +53,8 @@ router.get('/name/:name/birth/:birth', (req, res) => {
mhurtArr
.
unshift
(
rows
[
i
].
mhurt
);
lhurtArr
.
unshift
(
rows
[
i
].
lhurt
);
occurArr
.
unshift
(
rows
[
i
].
occurence
);
////
airArr
.
unshift
(
rows
[
i
].
pollution
);
count
=
count
+
1
;
if
(
count
==
10
)
{
...
...
@@ -74,7 +77,8 @@ router.get('/name/:name/birth/:birth', (req, res) => {
tdeathArr
,
mhurtArr
,
lhurtArr
,
occurArr
occurArr
,
airArr
});
}
});
...
...
Please
register
or
login
to post a comment