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