Private
Public Access
1
0

sort of saves files

This commit is contained in:
Sander Roosendaal
2020-07-05 16:13:04 +02:00
parent 34c1f83b70
commit bb64a1215d
7 changed files with 174 additions and 45 deletions

View File

@@ -2842,12 +2842,13 @@ class Workout(models.Model):
boattype = self.boattype
workouttype = self.workouttype
if workouttype != 'water':
stri = u'{d} {n} {dist}m {duration:%H:%M:%S} {workouttype} {ownerfirst} {ownerlast}'.format(
stri = u'{d} {n} {dist}m {duration} {workouttype} {ownerfirst} {ownerlast}'.format(
d = date.strftime('%Y-%m-%d'),
n = name,
dist = distance,
duration = duration,
duration = duration.strftime("%H:%M:%S"),
workouttype = workouttype,
ownerfirst = ownerfirst,
ownerlast = ownerlast,