diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-16 22:37:33 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-16 22:49:23 +0200 |
commit | 2c02556ce1d58e7ed89b42da5cc579809347d251 (patch) | |
tree | 68f4819aa0d5703d118da0c589ca6f95748fa804 /tools/parse-layout.js | |
parent | 0c8cc28fc48a192d476c5b394256468735861289 (diff) | |
download | maria-2c02556ce1d58e7ed89b42da5cc579809347d251.tar.gz |
layout box
Diffstat (limited to 'tools/parse-layout.js')
-rw-r--r-- | tools/parse-layout.js | 11 |
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) + } } } |