From e33518bdf977fe43ff237eff1592452774c393f5 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 16 Feb 2017 19:11:13 +0100 Subject: [PATCH] bugfix new_workout_from_file --- rowers/dataprep.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 15e76a0c..434068c9 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -448,13 +448,13 @@ def new_workout_from_file(r,f2, if fileformat == 'c2log': os.remove(f2) message = "This C2 logbook summary does not contain stroke data. Please download the Export Stroke Data file from the workout details on the C2 logbook." - return (0,message) + return (0,message,f2) # Some people try to upload RowPro summary logs if fileformat == 'rowprolog': os.remove(f2) message = "This RowPro logbook summary does not contain stroke data. Please use the Stroke Data CSV file for the individual workout in your log." - return (0,message) + return (0,message,f2) # Sometimes people try an unsupported file type. # Send an email to info@rowsandall.com with the file attached @@ -469,7 +469,7 @@ def new_workout_from_file(r,f2, else: res = queuehigh.enqueue(handle_sendemail_unrecognized, f2,r.user.email) - return (0,message) + return (0,message,f2) # handle non-Painsled by converting it to painsled compatible CSV if (fileformat != 'csv'):