Private
Public Access
1
0

small error fix in unrecognized

This commit is contained in:
Sander Roosendaal
2017-02-13 16:34:59 +01:00
parent 2b88be67de
commit 083c7e5916

View File

@@ -449,12 +449,12 @@ def new_workout_from_file(r,f2,
message = "We couldn't recognize the file type"
if settings.DEBUG:
res = handle_sendemail_unrecognized.delay(f2,
request.user.email)
r.user.email)
else:
res = queuehigh.enqueue(handle_sendemail_unrecognized,
f2,request.user.email)
return (0,'message')
f2,r.user.email)
return (0,message)
# handle non-Painsled by converting it to painsled compatible CSV
if (fileformat != 'csv'):