fixing to accomodate golang service
This commit is contained in:
@@ -4425,7 +4425,6 @@ def workout_upload_api(request):
|
|||||||
rowerform.fields.pop('email')
|
rowerform.fields.pop('email')
|
||||||
try:
|
try:
|
||||||
fstr = post_data['file']
|
fstr = post_data['file']
|
||||||
print(fstr)
|
|
||||||
nn, ext = os.path.splitext(fstr)
|
nn, ext = os.path.splitext(fstr)
|
||||||
if ext== '.gz':
|
if ext== '.gz':
|
||||||
nn, ext2 = os.path.splitext(nn)
|
nn, ext2 = os.path.splitext(nn)
|
||||||
@@ -4452,6 +4451,9 @@ def workout_upload_api(request):
|
|||||||
if len(us):
|
if len(us):
|
||||||
u = us[0]
|
u = us[0]
|
||||||
r = getrower(u)
|
r = getrower(u)
|
||||||
|
else:
|
||||||
|
message = {'status':'false','message':'could not find user'}
|
||||||
|
return JSonResponse(status=400,data=message)
|
||||||
else:
|
else:
|
||||||
message = {'status':'false','message':'invalid user'}
|
message = {'status':'false','message':'invalid user'}
|
||||||
return JSonResponse(status=400,data=message)
|
return JSonResponse(status=400,data=message)
|
||||||
|
|||||||
Reference in New Issue
Block a user