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':
|
elif function == 'compare':
|
||||||
script,div = comparisondata(workouts,options)
|
script,div = comparisondata(workouts,options)
|
||||||
elif function == 'cp':
|
elif function == 'cp':
|
||||||
|
<<<<<<< HEAD
|
||||||
script, div = cpdata(workouts, options)
|
script, div = cpdata(workouts, options)
|
||||||
|
=======
|
||||||
|
script, div = cpdata(workouts,options)
|
||||||
|
>>>>>>> develop
|
||||||
else:
|
else:
|
||||||
script = ''
|
script = ''
|
||||||
div = 'Unknown analysis functions'
|
div = 'Unknown analysis functions'
|
||||||
|
|||||||
@@ -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