Changeset 42baca4 in OpenWorkouts-current for ow/models/workout.py
- Timestamp:
- Apr 22, 2019, 6:14:53 PM (5 years ago)
- Branches:
- current
- Children:
- 0dedfbe
- Parents:
- e52a502
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/workout.py
re52a502 r42baca4 136 136 137 137 @property 138 def hashed(self): 139 """ 140 Return a unique hash that we use to look for duplicated workouts. 141 The hash contains: owner's uid, start time, duration and distance 142 """ 143 hashed = '' 144 if self.owner is not None: 145 hashed += str(self.owner.uid) 146 hashed += self.start.strftime('%Y%m%d%H%M%S') 147 hashed += str(self.duration.seconds) 148 hashed += str(self.distance) 149 return hashed 150 151 @property 138 152 def trimmed_notes(self): 139 153 """
Note: See TracChangeset
for help on using the changeset viewer.