Merge branch 'develop' into feature/cp2
This commit is contained in:
@@ -780,7 +780,11 @@ def analysis_view_data(request,userid=0):
|
||||
elif function == 'compare':
|
||||
script,div = comparisondata(workouts,options)
|
||||
elif function == 'cp':
|
||||
<<<<<<< HEAD
|
||||
script, div = cpdata(workouts, options)
|
||||
=======
|
||||
script, div = cpdata(workouts,options)
|
||||
>>>>>>> develop
|
||||
else:
|
||||
script = ''
|
||||
div = 'Unknown analysis functions'
|
||||
|
||||
@@ -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