new stats

This commit is contained in:
Pieter Vander Vennet 2022-09-14 17:44:35 +02:00
parent 1134ac4d54
commit b226f6d26a
13 changed files with 13 additions and 3 deletions

View file

@ -55,12 +55,11 @@ class StatsDownloader {
if (existsSync(path)) {
let features = JSON.parse(readFileSync(path, "UTF-8"))
features = features?.features ?? features
console.log(features)
features.push(...features.features) // day-stats are generally a list already, but in some ad-hoc cases might be a geojson-collection too
console.log(
"Loaded ",
path,
"from disk, got",
"from disk, has",
features.length,
"features now"
)