Showing
1 changed file
with
8 additions
and
8 deletions
... | @@ -4,8 +4,8 @@ var db = require('../lib/db_total'); | ... | @@ -4,8 +4,8 @@ var db = require('../lib/db_total'); |
4 | 4 | ||
5 | /* GET home page. */ | 5 | /* GET home page. */ |
6 | 6 | ||
7 | -router.post('/starting' , (req,res) => { | 7 | +router.post('/starting', (req, res) => { |
8 | - res.redirect(`/name/${req.body.name}/birth/${req.body.birth}`); | 8 | + res.redirect(`/name/${req.body.name}/birth/${req.body.birth}`); |
9 | }) | 9 | }) |
10 | router.get('/name/:name/birth/:birth', (req, res) => { | 10 | router.get('/name/:name/birth/:birth', (req, res) => { |
11 | 11 | ||
... | @@ -23,10 +23,10 @@ router.get('/name/:name/birth/:birth', (req, res) => { | ... | @@ -23,10 +23,10 @@ router.get('/name/:name/birth/:birth', (req, res) => { |
23 | const birth = req.params.birth; | 23 | const birth = req.params.birth; |
24 | //const address = req.params.address; | 24 | //const address = req.params.address; |
25 | //////////////////////////////////////// | 25 | //////////////////////////////////////// |
26 | - var deathArr = new Array(); | 26 | + var tdeathArr = new Array(); //사망자수 |
27 | - var mhurtArr = new Array(); | 27 | + var mhurtArr = new Array(); //중상자수 |
28 | - var lhurtArr = new Array(); | 28 | + var lhurtArr = new Array(); //경상자수 |
29 | - var occurArr = new Array(); | 29 | + var occurArr = new Array(); //총 발생수 |
30 | //////////////////////////////////////// | 30 | //////////////////////////////////////// |
31 | 31 | ||
32 | 32 | ||
... | @@ -48,7 +48,7 @@ router.get('/name/:name/birth/:birth', (req, res) => { | ... | @@ -48,7 +48,7 @@ router.get('/name/:name/birth/:birth', (req, res) => { |
48 | wsArr.unshift(rows[i].wind); | 48 | wsArr.unshift(rows[i].wind); |
49 | rainArr.unshift(rows[i].rain); | 49 | rainArr.unshift(rows[i].rain); |
50 | //// | 50 | //// |
51 | - deathArr.unshift(rows[i].tdeath); | 51 | + tdeathArr.unshift(rows[i].tdeath); |
52 | mhurtArr.unshift(rows[i].mhurt); | 52 | mhurtArr.unshift(rows[i].mhurt); |
53 | lhurtArr.unshift(rows[i].lhurt); | 53 | lhurtArr.unshift(rows[i].lhurt); |
54 | occurArr.unshift(rows[i].occurence); | 54 | occurArr.unshift(rows[i].occurence); |
... | @@ -71,7 +71,7 @@ router.get('/name/:name/birth/:birth', (req, res) => { | ... | @@ -71,7 +71,7 @@ router.get('/name/:name/birth/:birth', (req, res) => { |
71 | dataLen, | 71 | dataLen, |
72 | name, | 72 | name, |
73 | birth, | 73 | birth, |
74 | - deathArr, | 74 | + tdeathArr, |
75 | mhurtArr, | 75 | mhurtArr, |
76 | lhurtArr, | 76 | lhurtArr, |
77 | occurArr | 77 | occurArr | ... | ... |
-
Please register or login to post a comment