fixing stuff after splitting jsons
This commit is contained in:
@@ -50,8 +50,10 @@ def write_activity(
|
||||
source = _infer_source(activity)
|
||||
has_gps = metrics.bbox is not None and privacy not in ("no_gps", "private")
|
||||
|
||||
# Build timeseries once — written to a separate file to keep detail JSON small
|
||||
timeseries = build_timeseries(activity.points, activity.started_at, privacy)
|
||||
# Build timeseries once — written to a separate file to keep detail JSON small.
|
||||
# Treat an empty timeseries (no points) as None so no file is created.
|
||||
_ts = build_timeseries(activity.points, activity.started_at, privacy)
|
||||
timeseries = _ts if _ts.get("t") else None
|
||||
tag = activity.source_hash[-8:] if activity.source_hash else "unknown"
|
||||
|
||||
# ── detail JSON ──────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user