From f668efb2184bf4b5ddc072aa5abd0c47f90985a5 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sat, 22 Aug 2020 04:26:08 -0400 Subject: [PATCH] Fix JSON by not outputting error --- .gitignore | 2 +- server-pages.csv | 1 + server-status.js | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index dbf871c..ecce305 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -server-pages-test.csv +server-pages-*.csv # npm {{{ - diff --git a/server-pages.csv b/server-pages.csv index 8023171..383d437 100644 --- a/server-pages.csv +++ b/server-pages.csv @@ -1,5 +1,6 @@ shortUrl,url,siteTitle,description,repo,repoUrl cal.khkm.tk,https://cal.khkm.tk,"Baïkal server","CalDAV/CardDAV server.",sabre-io/Baikal,https://github.com/sabre-io/Baikal +ataraxy.tk,http://ataraxy.tk/,"Ataraxy | Call of Duty: Mobile Clan","Site for my Call of Duty: Mobile clan.",Kevin-Mok/codm.ataraxy.tk,https://git.kevin-mok.com/Kevin-Mok/codm.ataraxy.tk git.kevin-mok.com,https://git.kevin-mok.com,"Kevin Mok's Gitea","Git server.",go-gitea/gitea,https://github.com/go-gitea/gitea img.khkm.tk,https://img.khkm.tk,"Kevin's Images","Image hosting.",LycheeOrg/Lychee,https://github.com/LycheeOrg/Lychee/ kevin-mok.com,https://kevin-mok.com," Kevin Mok ","Personal site (this site).",Kevin-Mok/my-site,https://git.kevin-mok.com/Kevin-Mok/my-site diff --git a/server-status.js b/server-status.js index e549cd0..0b8d788 100644 --- a/server-status.js +++ b/server-status.js @@ -16,10 +16,12 @@ const checkIfTitleMatches = obj => { } else { obj['status'] = 'down' } - return true + // return true }, error => { // failure handler - console.log(error) + // console.log(error) + obj['status'] = 'down' + // return false }) }