Skip to content

Commit 8039734

Browse files
committed
Bugfix tcxreader-py
Bugfix for reading Lap Extensions (LX).
1 parent 78a8c07 commit 8039734

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setuptools.setup(
99
name="tcxreader",
10-
version="0.4.0",
10+
version="0.4.1",
1111
author="Alen Rajšp",
1212
author_email="[email protected]",
1313
description="tcxreader is a reader for Garmin’s TCX file format. It also works well with missing data!",

tcxreader/tcxreader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def read(self, fileLocation: str, only_gps: bool = True) -> TCXExercise:
5050
tcx_lap.trackpoints.append(tcx_point)
5151
if lap_child.tag == GARMIN_XML_SCHEMA + 'Extensions':
5252
extensions = lap_child
53-
c={}
5453
for extension in extensions:
5554
if extension.tag == GARMIN_XML_EXTENSIONS+'LX':
5655
for lx_extension in extension:
@@ -62,7 +61,7 @@ def read(self, fileLocation: str, only_gps: bool = True) -> TCXExercise:
6261
else:
6362
tag_value = int(tag_value)
6463

65-
if "Avg" in tag_name or "Average" in tag_name or "Max" in tag_name or "Min in tag_name":
64+
if "Avg" in tag_name or "Average" in tag_name or "Max" in tag_name or "Min" in tag_name:
6665
pass
6766
else:
6867
if tag_name in tcx_exercise.lx_ext:

0 commit comments

Comments
 (0)