Changeset d7a9df5 in OpenWorkouts-current for ow/models/workout.py
- Timestamp:
- Feb 10, 2019, 8:28:44 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- e547af5
- Parents:
- 6662a84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/workout.py
r6662a84 rd7a9df5 1 1 import os 2 import textwrap 2 3 from datetime import datetime, timedelta, timezone 3 4 from decimal import Decimal … … 136 137 137 138 @property 139 def trimmed_notes(self): 140 """ 141 Return a string with a reduced version of the full notes for this 142 workout. 143 """ 144 return textwrap.shorten(self.notes, width=225, placeholder=' ...') 145 146 @property 138 147 def has_hr(self): 139 148 """
Note: See TracChangeset
for help on using the changeset viewer.