stats: Fix inaccuracies if lat or long is missing
* please also note that freifunk-gluon/gluon#703 exists.
This commit is contained in:
parent
f8701ca0e3
commit
40dd7d2a0a
@ -159,7 +159,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
|||||||
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
|
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
|
||||||
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
|
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
|
||||||
var geoDict = count(nodes, ["nodeinfo", "location"], function (d) {
|
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) {
|
var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) {
|
||||||
|
Loading…
Reference in New Issue
Block a user