Skip to content

Commit bfa413e

Browse files
committed
Pre-release cleanup
1 parent 7ef2356 commit bfa413e

6 files changed

Lines changed: 20 additions & 7 deletions

File tree

.python-version

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
3.9.0
2-
3.8.6
3-
3.7.9
4-
3.6.12
1+
3.9.9
2+
3.8.12
3+
3.7.12
4+
3.6.15

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ Other contributions from:
1414
* Loïs Taulelle (@ltaulell)
1515
* Jan Pipek (@janpipek)
1616
* Kees Hink (@khink)
17+
* @terra-alex
1718

1819
Thank you!

CHANGES.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
CHANGES
22
=======
33

4+
v2.1.0, 2021-12-30
5+
----------------
6+
7+
* Calculate time in HR zones. Thanks @khink (#41)
8+
* Don't throw exceptions when certain data is missing. Thanks @terra-alex (#74)
9+
* Minor updates to dependencies. Thanks pyup-bot
10+
11+
412
v2.0.0, 2020-12-20
513
------------------
614

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-2021, Vinod Kurup
1+
Copyright (c) 2013-2022, Vinod Kurup
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import find_packages, setup
22

3-
__version__ = "2.0.0"
3+
__version__ = "2.1.0"
44

55
setup(
66
name="python-tcxparser",

tcxparser/tcxparser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ def completed_at(self):
106106

107107
@property
108108
def cadence_avg(self):
109-
return self.activity.Lap[-1].Cadence if hasattr(self.activity.Lap[-1], "Cadence") else None
109+
return (
110+
self.activity.Lap[-1].Cadence
111+
if hasattr(self.activity.Lap[-1], "Cadence")
112+
else None
113+
)
110114

111115
@property
112116
def distance(self):

0 commit comments

Comments
 (0)