Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.15.0"
current_version = "0.15.1"

parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<rc_l>rc)(?P<rc>0|[1-9]\\d*))?"

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "otf-api"
version = "0.15.0"
version = "0.15.1"
description = "Python OrangeTheory Fitness API Client"
authors = [{ name = "Jessica Smith", email = "[email protected]" }]
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
project = "OrangeTheory API"
copyright = "2025, Jessica Smith"
author = "Jessica Smith"
release = "0.15.0"
release = "0.15.1"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion src/otf_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _setup_logging() -> None:

_setup_logging()

__version__ = "0.15.0"
__version__ = "0.15.1"


__all__ = ["Otf", "OtfUser", "models"]
9 changes: 5 additions & 4 deletions src/otf_api/models/workouts/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,17 @@ class Telemetry(OtfItemBase):
)
class_start_time: datetime | None = Field(None, validation_alias="classStartTime")
max_hr: int | None = Field(None, validation_alias="maxHr")
zones: Zones
zones: Zones | None = Field(default=None, description="The zones associated with the telemetry.")
window_size: int | None = Field(None, validation_alias="windowSize")
telemetry: list[TelemetryItem] = Field(default_factory=list)

def __init__(self, **data: dict[str, Any]):
super().__init__(**data)
for telem in self.telemetry:
if self.class_start_time is None:
continue

if self.class_start_time is None:
return

for telem in self.telemetry:
telem.timestamp = self.class_start_time + timedelta(seconds=telem.relative_timestamp)

@field_serializer("telemetry", when_used="json")
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.