Skip to content

Commit

Permalink
Merge pull request #54 from gadventures/fix-activitydossier-duration
Browse files Browse the repository at this point in the history
Fix ActivityDossier's Duration initialization
  • Loading branch information
bartek committed Oct 18, 2016
2 parents 982081e + 2e79947 commit f4f8478
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
History
=======

2.4.6 (2016-10-????)
------------------

* Fix broken ``Duration`` init in ``ActivityDossier`` (likely broke due to
changes that happened in 2.0.0)

2.4.5 (2016-10-13)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gapipy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

__version__ = '2.4.5'
__version__ = '2.4.6'
__title__ = 'gapipy'


Expand Down
8 changes: 5 additions & 3 deletions gapipy/resources/dossier/activity_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ def duration(self):
return None

from gapipy.resources import Duration
duration = Duration(data=dict(
min_hr=self.duration_min,
max_hr=self.duration_max)
duration = Duration(
data=dict(
min_hr=self.duration_min,
max_hr=self.duration_max),
client=self._client,
)
return duration

Expand Down

0 comments on commit f4f8478

Please sign in to comment.