explore: skip legacy bare-timestamp geojsons; type pill colors visible when inactive
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user