small error fix in unrecognized
This commit is contained in:
@@ -449,12 +449,12 @@ def new_workout_from_file(r,f2,
|
|||||||
message = "We couldn't recognize the file type"
|
message = "We couldn't recognize the file type"
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
res = handle_sendemail_unrecognized.delay(f2,
|
res = handle_sendemail_unrecognized.delay(f2,
|
||||||
request.user.email)
|
r.user.email)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
res = queuehigh.enqueue(handle_sendemail_unrecognized,
|
res = queuehigh.enqueue(handle_sendemail_unrecognized,
|
||||||
f2,request.user.email)
|
f2,r.user.email)
|
||||||
return (0,'message')
|
return (0,message)
|
||||||
|
|
||||||
# handle non-Painsled by converting it to painsled compatible CSV
|
# handle non-Painsled by converting it to painsled compatible CSV
|
||||||
if (fileformat != 'csv'):
|
if (fileformat != 'csv'):
|
||||||
|
|||||||
Reference in New Issue
Block a user