From 69715516d6b6f7e96adf3439e7adcd3144771649 Mon Sep 17 00:00:00 2001 From: d4rtj Date: Fri, 28 Oct 2022 12:11:00 +0700 Subject: [PATCH] change names --- controllers/mainController.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/controllers/mainController.js b/controllers/mainController.js index 0070eb6..f997361 100644 --- a/controllers/mainController.js +++ b/controllers/mainController.js @@ -36,7 +36,7 @@ class MainController { if (names.includes(name)) { return; } else { - names.push(name); + names.push(name.split('.').join('_')); } // } } @@ -88,7 +88,7 @@ class MainController { // .each(function () { // const time = $(this).prop('innerHTML').split(' ')[1]; - // // times.push(time); + // times.push(time); // console.log(time); // }); @@ -111,7 +111,11 @@ class MainController { // console.log(nowDay.getHours() + ':' + nowDay.getMinutes()); // console.log(objTimesNames); - const date = $('.class-title-list-link', html).first().find('a:last-child').text().split(' ')[1]; + const date = $('.class-title-list-link', html) + .first() + .find('a:last-child') + .text() + .split(' ')[1]; res.status(200).json({ countNumbers: numbers.length,