diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index 7371a77..9adc0d7 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -8,6 +8,10 @@ This is the pre-release series. Things haven't settled yet, so each minor versio ### Version 0.17 +#### Version 0.17.5 + +- Convert FIT sport type enum to strings. [GH-84](https://github.com/martin-ueding/geo-activity-playground/issues/84) + #### Version 0.17.4 - Try to use charset-normalizer to figure out the strange encoding. [GH-83](https://github.com/martin-ueding/geo-activity-playground/issues/83) diff --git a/geo_activity_playground/core/activity_parsers.py b/geo_activity_playground/core/activity_parsers.py index 853f825..7d0a2c6 100644 --- a/geo_activity_playground/core/activity_parsers.py +++ b/geo_activity_playground/core/activity_parsers.py @@ -175,9 +175,9 @@ def read_fit_activity(path: pathlib.Path, open) -> tuple[ActivityMeta, pd.DataFr if "wkt_name" in fields: metadata["name"] = values["wkt_name"] if "sport" in fields: - metadata["kind"] = values["sport"] + metadata["kind"] = str(values["sport"]) if "sub_sport" in values: - metadata["kind"] += " " + values["sub_sport"] + metadata["kind"] += " " + str(values["sub_sport"]) return metadata, pd.DataFrame(rows)