feat: avg pace over moving time (fixes elapsed-based pace on paused activities); show mid-activity pauses on Body Battery band via active_spans
Build and push images / validate (push) Successful in 3s
Build and push images / build-backend (push) Successful in 7s
Build and push images / build-worker (push) Successful in 5s
Build and push images / build-frontend (push) Successful in 10s

This commit is contained in:
2026-06-20 20:04:53 +01:00
parent 0e1d35364f
commit e33946e270
6 changed files with 111 additions and 14 deletions
+5
View File
@@ -107,6 +107,11 @@ class Activity(Base):
normalized_power = Column(Float, nullable=True)
avg_speed_ms = Column(Float, nullable=True)
max_speed_ms = Column(Float, nullable=True)
# When recording was paused/resumed (e.g. a long lunch break mid-ride) the
# device leaves a gap in the data stream. Stored as a list of active
# [start_ms, end_ms] epoch spans (only set when a >5min gap splits the
# recording into 2+ spans); null means one continuous recording.
active_spans = Column(JSON, nullable=True)
avg_temperature_c = Column(Float, nullable=True)
calories = Column(Float, nullable=True)
training_stress_score = Column(Float, nullable=True)