Commit 114e301a by x

random store fix

parent a5a6b1f3
...@@ -20,17 +20,15 @@ def index(request): ...@@ -20,17 +20,15 @@ def index(request):
return HttpResponse('Can not acces to django database!') return HttpResponse('Can not acces to django database!')
if StoreApi.UserExist(user) != True: if StoreApi.UserExist(user) != True:
#Create user #Create user
if StoreApi.CreateUser(user,password,key_list): if not StoreApi.CreateUser(user,password,key_list):
pass
else:
return HttpResponse('User does not exist on store! And could not create!') return HttpResponse('User does not exist on store! And could not create!')
#UpdateAuthorizationInfo #UpdateAuthorizationInfo
try: try:
auth=request.POST['auth'] auth=request.POST['auth']
result='ures' if not StoreApi.UpdateAuthorizationInfo(user,password,key_list):
result=UpdateAuthorizationInfo(user,password,key_list) return HttpResponse('Can not update authorization information!')
except: except:
return HttpResponse('Error: '+result) pass
#Download handler #Download handler
try: try:
dl = request.POST['dl'] dl = request.POST['dl']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment