summaryrefslogtreecommitdiff
path: root/tools/parse-layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/parse-layout.js')
-rw-r--r--tools/parse-layout.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/parse-layout.js b/tools/parse-layout.js
index 785bc8c..b36ac9e 100644
--- a/tools/parse-layout.js
+++ b/tools/parse-layout.js
@@ -450,10 +450,13 @@ let sets = {
for (let i = 0; i < cities.length; ++i) {
let city = cities[i]
for (let key in city) {
- if (arrays[key])
- arrays[key].push(city[key])
- if (sets[key])
- sets[key][city[key]].push(i)
+ let val = city[key]
+ if (val !== "UNKNOWN") {
+ if (arrays[key])
+ arrays[key].push(city[key])
+ if (sets[key])
+ sets[key][city[key]].push(i)
+ }
}
}