Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-10-11 19:21:40 +02:00
parent b06cddd2c2
commit 3a0dea116c

View File

@@ -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: