freifunk-bot

Modular parser for the hackerspace door status with handlers for multiple services
git clone git://archive.git.mtrnord.blog/MTRNord/freifunk-bot.git
Log | Files | Refs | README | LICENSE

commit 998684d4276b0c9001a1ba93ae5e513743077289
parent d936c382b58feee015ad3d4b29aa0c9dfc5a2ae8
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 11 Sep 2016 00:15:01 +0200

fix counting

Diffstat:
Mhandlers/getNodes.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/handlers/getNodes.js b/handlers/getNodes.js @@ -82,10 +82,10 @@ module.exports = { if (key["flags"]["online"] == true) { count++; } - if (key.hasOwnProperty('status')) { - if (key["status"]["online"] == true) { - count++; - } + } + if (key.hasOwnProperty('status')) { + if (key["status"]["online"] == true) { + count++; } } });