SW0000J

route 배열 오류 재수정

......@@ -23,7 +23,6 @@ let doosan = new Array();
const loadlist = async function() {
try {
newlist = []
doosan = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['두산', '베어스', '김재환', '김태형', '알칸타라'];
doosan = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let hanwha = new Array();
const loadlist = async function() {
try {
newlist = []
hanwha = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['한화', '이긇스', '18연패', '김태균', '한용덕', '최원호', '대전'];
hanwha = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let kia = new Array();
const loadlist = async function() {
try {
newlist = []
kia = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['KIA', 'kia', '기아', '타이거즈', '최형우', '윌리엄스', '광주'];
kia = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let kiwoom = new Array();
const loadlist = async function() {
try {
newlist = []
kiwoom = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['키움', '히어로즈', '박병호', '손혁', '고척'];
kiwoom = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let kt = new Array();
const loadlist = async function() {
try {
newlist = []
kt = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['kt', 'KT', 'wiz', 'WIZ', '케이티', '위즈', '강백호', '이강철', '수원'];
kt = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let lg = new Array();
const loadlist = async function() {
try {
newlist = []
lg = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['LG', 'lg', '엘지', '트윈스', '라모스', '류중일'];
lg = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let lotte = new Array();
const loadlist = async function() {
try {
newlist = []
lotte = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['롯데', '자이언츠', '이대호', '허문회', '사직'];
lotte = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let nc = new Array();
const loadlist = async function() {
try {
newlist = []
nc = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['NC', 'nc', '엔씨', '다이노스', '알테어', '강진성', '깡', '이동욱', '창원'];
nc = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let samsung = new Array();
const loadlist = async function() {
try {
newlist = []
smasung = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['삼성', '라이온즈', '구자욱', '허삼영', '대구'];
samsung = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......
......@@ -23,7 +23,6 @@ let sk = new Array();
const loadlist = async function() {
try {
newlist = []
sk = []
isplus1 = await getIsplus1();
isplus2 = await getIsplus2();
isplus3 = await getIsplus3();
......@@ -35,6 +34,7 @@ try {
newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
let searchlist = ['sk', 'SK', '와이번스', '로맥', '염경엽', '인천', '문학'];
sk = []
for(var i of newslist){
for (var j of searchlist){
if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
......