From 54feeea4cd0de34d701100c031f67cf69532352b Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 12 Jun 2012 00:37:07 +0200 Subject: [PATCH] include offline nodes in nodes.json --- d3mapbuilder.py | 2 +- html/force.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/d3mapbuilder.py b/d3mapbuilder.py index 40faf37..eec5403 100644 --- a/d3mapbuilder.py +++ b/d3mapbuilder.py @@ -13,7 +13,7 @@ class D3MapBuilder: 'macs': ', '.join(x.macs), 'geo': x.gps.split(" ") if x.gps else None, 'flags': x.flags - } for x in nodes if x.flags['online']] + } for x in nodes] links = self._db.get_links() diff --git a/html/force.js b/html/force.js index ffd1b64..f7e856a 100644 --- a/html/force.js +++ b/html/force.js @@ -371,6 +371,9 @@ function update() { if (!visible.clients && d.flags.client) return false + if (!d.flags.online) + return false + return true })