explore: skip legacy bare-timestamp geojsons; type pill colors visible when inactive

This commit is contained in:
Davide Scaini
2026-05-14 15:55:10 +02:00
parent e7228c2be8
commit 5593764fdb
2 changed files with 7 additions and 2 deletions
+4
View File
@@ -51,6 +51,10 @@ def bake_tracks(handle: str, data_dir: Path) -> int:
meta = json.loads(meta_path.read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError):
pass
else:
# bare-timestamp geojson with no metadata — superseded by a slug version
if list(acts_dir.glob(f"{act_id}-*.geojson")):
continue
if meta.get("virtual") or meta.get("sub_sport") == "indoor":
continue