stats: Fix inaccuracies if lat or long is missing

* please also note that freifunk-gluon/gluon#703 exists.
This commit is contained in:
David Kolossa 2016-03-24 00:42:58 +01:00
parent f8701ca0e3
commit 40dd7d2a0a

View File

@ -159,7 +159,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
var geoDict = count(nodes, ["nodeinfo", "location"], function (d) {
return d ? "ja" : "nein"
return d && d.longitude && d.latitude ? "ja" : "nein"
})
var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) {