tested functionality on test site
This commit is contained in:
@@ -84,13 +84,13 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False):
|
||||
make_new_workout_from_email(therower, filename, title,testing=testing)
|
||||
]
|
||||
|
||||
if testing and workoutid[0]:
|
||||
w = Workout.objects.get(id = workoutid[0])
|
||||
w.startdatetime = timezone.now()
|
||||
w.date = timezone.now().date()
|
||||
w.save()
|
||||
|
||||
if 'raceid' in uploadoptions and workoutid[0]:
|
||||
if 'raceid' in uploadoptions and workoutid[0] and rower.user.is_staff:
|
||||
if testing and workoutid[0]:
|
||||
w = Workout.objects.get(id = workoutid[0])
|
||||
w.startdatetime = timezone.now()
|
||||
w.date = timezone.now().date()
|
||||
w.save()
|
||||
try:
|
||||
race = VirtualRace.objects.get(id=uploadoptions['raceid'])
|
||||
if race.manager == rower.user:
|
||||
|
||||
Reference in New Issue
Block a user