Skip to content

Commit

Permalink
Pre-release cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vkurup committed Dec 30, 2021
1 parent 7ef2356 commit bfa413e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .python-version
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ Other contributions from:
* Loïs Taulelle (@ltaulell)
* Jan Pipek (@janpipek)
* Kees Hink (@khink)
* @terra-alex

Thank you!
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -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
------------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

__version__ = "2.0.0"
__version__ = "2.1.0"

setup(
name="python-tcxparser",
Expand Down
6 changes: 5 additions & 1 deletion tcxparser/tcxparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit bfa413e

Please sign in to comment.