diff --git a/.python-version b/.python-version index f811d15..eedede7 100644 --- a/.python-version +++ b/.python-version @@ -1,4 +1,4 @@ -3.9.0 -3.8.6 -3.7.9 -3.6.12 +3.9.9 +3.8.12 +3.7.12 +3.6.15 diff --git a/AUTHORS.rst b/AUTHORS.rst index ad4a771..9b7ab44 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -14,5 +14,6 @@ Other contributions from: * Loïs Taulelle (@ltaulell) * Jan Pipek (@janpipek) * Kees Hink (@khink) +* @terra-alex Thank you! diff --git a/CHANGES.rst b/CHANGES.rst index 268beb7..e7519d3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,14 @@ CHANGES ======= +v2.1.0, 2021-12-30 +---------------- + +* Calculate time in HR zones. Thanks @khink (#41) +* Don't throw exceptions when certain data is missing. Thanks @terra-alex (#74) +* Minor updates to dependencies. Thanks pyup-bot + + v2.0.0, 2020-12-20 ------------------ diff --git a/LICENSE b/LICENSE index 6268a9b..7b97cc8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2021, Vinod Kurup +Copyright (c) 2013-2022, Vinod Kurup All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/setup.py b/setup.py index b874b36..ac543f0 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -__version__ = "2.0.0" +__version__ = "2.1.0" setup( name="python-tcxparser", diff --git a/tcxparser/tcxparser.py b/tcxparser/tcxparser.py index 9835172..090379e 100644 --- a/tcxparser/tcxparser.py +++ b/tcxparser/tcxparser.py @@ -106,7 +106,11 @@ def completed_at(self): @property def cadence_avg(self): - return self.activity.Lap[-1].Cadence if hasattr(self.activity.Lap[-1], "Cadence") else None + return ( + self.activity.Lap[-1].Cadence + if hasattr(self.activity.Lap[-1], "Cadence") + else None + ) @property def distance(self):