From 2c02556ce1d58e7ed89b42da5cc579809347d251 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 16 Oct 2024 22:37:33 +0200 Subject: layout box --- tools/parse-layout.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tools/parse-layout.js') 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) + } } } -- cgit v1.2.3