feat: avg pace over moving time (fixes elapsed-based pace on paused activities); show mid-activity pauses on Body Battery band via active_spans
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user