From 9ca2f4fc26726b85853cae6fb865c95a8a9a75c4 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 28 Jan 2017 19:19:24 +0100 Subject: [PATCH] don't know --- rowers/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rowers/views.py b/rowers/views.py index 2fa5a15b..20c1ea37 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -3799,6 +3799,7 @@ def workout_upload_view(request,message=""): # Some people try to upload Concept2 logbook summaries 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." url = reverse(workout_upload_view, args=[str(message)]) @@ -3807,6 +3808,7 @@ def workout_upload_view(request,message=""): # 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." url = reverse(workout_upload_view, args=[str(message)])