diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 0b16e99f..15e76a0c 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -483,7 +483,7 @@ def new_workout_from_file(r,f2, dosummary=dosummary, title=title) - return (id,message) + return (id,message,f2) # Compare the data from the CSV file and the database # Currently only calculates number of strokes. To be expanded with diff --git a/rowers/views.py b/rowers/views.py index d561c448..9731e9e9 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -4241,7 +4241,7 @@ def workout_upload_view(request,message="", f2 = res[1] # file name incl media directory - id,message = dataprep.new_workout_from_file(r,f2, + id,message,f2 = dataprep.new_workout_from_file(r,f2, workouttype=workouttype, makeprivate=makeprivate, title = t,