From e8945185e2862c8bc031fb8d8fa75dbf05596bff Mon Sep 17 00:00:00 2001 From: YourFriendlyNeighborhoodDealer <3167982-YourFriendlyNeighborhoodDealer@users.noreply.gitlab.com> Date: Fri, 14 Dec 2018 21:34:31 +0100 Subject: [PATCH] Making things a bit prettyer --- actions.js | 5 +++-- server.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/actions.js b/actions.js index 999d202..9432e1d 100755 --- a/actions.js +++ b/actions.js @@ -21,7 +21,8 @@ module.exports = { ProcessIncomingRequest: ProcessIncomingRequest, CheckData: CheckData, - NLoad: NLoad + NLoad: NLoad, + LoadJSON: LoadJSON }; var recievedFile = "stats/recieved"; @@ -245,7 +246,7 @@ function Process(d, file) { return newRes.count - oldRes.count; } else - logger.Log("[PCES]:\t\tNo new data, and one line of stuff only"); + logger.Log("[PCES]:\t\tNo new data"); } catch (e) { diff --git a/server.js b/server.js index 5552901..f6a9745 100755 --- a/server.js +++ b/server.js @@ -115,6 +115,7 @@ app.get('/static', function(req, res) { }); app.get('/legacy', function(req, res) { + // TODO: make this ejs var f = utils.ReadFile(dataFile); var r = ''; r += '';