Skip to content

Commit

Permalink
Bugfix tcxreader-py
Browse files Browse the repository at this point in the history
Bugfix for reading Lap Extensions (LX).
  • Loading branch information
alenrajsp committed Aug 8, 2022
1 parent 78a8c07 commit 8039734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="tcxreader",
version="0.4.0",
version="0.4.1",
author="Alen Rajšp",
author_email="[email protected]",
description="tcxreader is a reader for Garmin’s TCX file format. It also works well with missing data!",
Expand Down
3 changes: 1 addition & 2 deletions tcxreader/tcxreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def read(self, fileLocation: str, only_gps: bool = True) -> TCXExercise:
tcx_lap.trackpoints.append(tcx_point)
if lap_child.tag == GARMIN_XML_SCHEMA + 'Extensions':
extensions = lap_child
c={}
for extension in extensions:
if extension.tag == GARMIN_XML_EXTENSIONS+'LX':
for lx_extension in extension:
Expand All @@ -62,7 +61,7 @@ def read(self, fileLocation: str, only_gps: bool = True) -> TCXExercise:
else:
tag_value = int(tag_value)

if "Avg" in tag_name or "Average" in tag_name or "Max" in tag_name or "Min in tag_name":
if "Avg" in tag_name or "Average" in tag_name or "Max" in tag_name or "Min" in tag_name:
pass
else:
if tag_name in tcx_exercise.lx_ext:
Expand Down

0 comments on commit 8039734

Please sign in to comment.