Changeset c9991fed in OpenWorkouts-current
- Timestamp:
- Feb 8, 2019, 1:15:43 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 55470f9
- Parents:
- 20782ac
- Location:
- ow
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/workout.py
r20782ac rc9991fed 138 138 """ 139 139 if self.distance: 140 return round(self.distance, 1)140 return round(self.distance, 2) 141 141 return '-' 142 142 -
ow/tests/models/test_workout.py
r20782ac rc9991fed 138 138 workout = Workout() 139 139 workout.distance = 44.44444444 140 assert workout.rounded_distance == 44.4 140 assert workout.rounded_distance == 44.44 141 141 142 142 def test_has_hr(self):
Note: See TracChangeset
for help on using the changeset viewer.