Private
Public Access
1
0

new user sample data

This commit is contained in:
Sander Roosendaal
2017-06-16 08:46:13 +02:00
parent 252be03e47
commit b0d6430e5b
3 changed files with 50 additions and 1 deletions

View File

@@ -343,6 +343,10 @@ def rower_register_view(request):
response = dataprep.new_workout_from_file(therower,f2,
title='New User Sample Data',
notes='This is an example workout to get you started')
newworkoutid = response[0]
w = Workout.objects.get(id=newworkoutid)
w.startdatetime = timezone.now()
w.save()
# Create and send email
fullemail = first_name + " " + last_name + " " + "<" + email + ">"