Changeset 64e8299 in OpenWorkouts-current for ow/models


Ignore:
Timestamp:
Jan 7, 2019, 12:45:28 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
e3d7b13
Parents:
fe6089a
Message:

Show properly formatted duration for workouts (hours:minutes:seconds)

even for workouts which duration contains microseconds info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/models/workout.py

    rfe6089a r64e8299  
    113113
    114114    @property
     115    def _duration(self):
     116        return ':'.join(
     117            [self.duration_hours, self.duration_minutes, self.duration_seconds]
     118        )
     119
     120    @property
    115121    def rounded_distance(self):
    116122        """
Note: See TracChangeset for help on using the changeset viewer.