bug fix
This commit is contained in:
@@ -4701,9 +4701,10 @@ def workout_upload_api(request):
|
|||||||
if post_data['useremail'] in rwr.emailalternatives:
|
if post_data['useremail'] in rwr.emailalternatives:
|
||||||
r = rwr
|
r = rwr
|
||||||
break
|
break
|
||||||
if post_data['useremail'] not in r.emailalternatives:
|
if r is not None and r.emailalternatives is not None:
|
||||||
message = {'status':'false','message':'could not find user'}
|
if post_data['useremail'] not in r.emailalternatives:
|
||||||
return JSONResponse(status=400,data=message)
|
message = {'status':'false','message':'could not find user'}
|
||||||
|
return JSONResponse(status=400,data=message)
|
||||||
|
|
||||||
|
|
||||||
if r is None:
|
if r is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user