Private
Public Access
1
0

MVP version of box charts

This commit is contained in:
Sander Roosendaal
2017-05-14 14:46:59 +02:00
parent 6208110a0a
commit d1fe31a0c8
4 changed files with 29 additions and 2 deletions

View File

@@ -433,12 +433,14 @@ class Workout(models.Model):
ownerfirst = self.user.user.first_name
ownerlast = self.user.user.last_name
duration = self.duration
workouttype = self.workouttype
stri = u'{d} {n} {dist}m {duration:%H:%M:%S} {ownerfirst} {ownerlast}'.format(
stri = u'{d} {n} {dist}m {duration:%H:%M:%S} {workouttype} {ownerfirst} {ownerlast}'.format(
d = date.strftime('%Y-%m-%d'),
n = name,
dist = distance,
duration = duration,
workouttype = workouttype,
ownerfirst = ownerfirst,
ownerlast = ownerlast,
)