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