From a604fda3cc6abce4aa7ce37e74e4d288d76c2b5f Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 22 May 2024 11:22:46 +0200 Subject: [PATCH] adding meters --- rowers/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rowers/models.py b/rowers/models.py index 6edc4c92..f29caa35 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -3700,7 +3700,7 @@ class Workout(models.Model): elements = dict( date = self.date.strftime('%Y-%m-%d'), name = self.name, - distance = str(self.distance), + distance = str(self.distance)+'m', ownerfirst = self.user.user.first_name, ownerlast = self.user.user.last_name, duration = self.duration.strftime("%H:%M:%S"), @@ -3727,7 +3727,7 @@ class Workout(models.Model): if self.workouttype not in ['water','rower']: try: - stri = u'{date} {name} {distance}m {duration} {workouttype} {ownerfirst} {ownerlast}'.format( + stri = u'{date} {name} {distance} {duration} {workouttype} {ownerfirst} {ownerlast}'.format( **elements ) except ValueError: @@ -3736,7 +3736,7 @@ class Workout(models.Model): return "No workout" else: try: - stri = u'{date} {name} {distance}m {duration} {workouttype} {boattype} {ownerfirst} {ownerlast}'.format( + stri = u'{date} {name} {distance} {duration} {workouttype} {boattype} {ownerfirst} {ownerlast}'.format( **elements ) except (ValueError, AttributeError):