diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index a90c2a2c..e5c0917a 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -1091,9 +1091,13 @@ def add_workout_from_data(user,importid,data,strokedata, workouttype=workouttype, title=title,notes=comments, workoutsource=workoutsource, - dosummary=True + dosummary=True,dosmooth=False, ) + w = Workout.objects.get(id=id) + w.duration = dataprep.totaltime_sec_to_string(totaltime) + w.distance = totaldist + w.save() return id,message