Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -28,7 +28,7 @@ router.post('/getPredict',function(req,res,next){ | ... | @@ -28,7 +28,7 @@ router.post('/getPredict',function(req,res,next){ |
28 | } | 28 | } |
29 | }) | 29 | }) |
30 | //csv포맷에 맞춰 출력 | 30 | //csv포맷에 맞춰 출력 |
31 | - let csv1 = normal_json.map((val)=>val.name).join(','); | 31 | + let csv1 = normal_json.map((val)=>"\"" + val.name+"\"").join(','); |
32 | let csv2 = normal_json.map((val)=>val.value).join(','); | 32 | let csv2 = normal_json.map((val)=>val.value).join(','); |
33 | csv = csv1 + '\n' +csv2; | 33 | csv = csv1 + '\n' +csv2; |
34 | fs.writeFileSync('./inspection.csv',csv); | 34 | fs.writeFileSync('./inspection.csv',csv); | ... | ... |
-
Please register or login to post a comment