mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
fix clientservices + automatic name approval
This commit is contained in:
parent
820732c776
commit
baaf4e787b
1 changed files with 6 additions and 1 deletions
|
@ -74,6 +74,10 @@ def executeHttpRequestAndLog(url, **extras):
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
blacklist = executeHttpRequest('names/blacklist.json')
|
||||||
|
if blacklist:
|
||||||
|
blacklist = json.loads(blacklist)
|
||||||
|
|
||||||
def judgeName(name):
|
def judgeName(name):
|
||||||
if not name:
|
if not name:
|
||||||
return False
|
return False
|
||||||
|
@ -158,7 +162,8 @@ class RemoteAccountDB(AccountDB):
|
||||||
return executeHttpRequest('names/append', ID=str(avId), Name=name)
|
return executeHttpRequest('names/append', ID=str(avId), Name=name)
|
||||||
|
|
||||||
def getNameStatus(self, avId):
|
def getNameStatus(self, avId):
|
||||||
return executeHttpRequest('names/status/?Id=' + str(avId))
|
#return executeHttpRequest('names/status/?Id=' + str(avId))
|
||||||
|
return 'APPROVED' # Override temporarily.
|
||||||
|
|
||||||
def removeNameRequest(self, avId):
|
def removeNameRequest(self, avId):
|
||||||
return executeHttpRequest('names/remove', ID=str(avId))
|
return executeHttpRequest('names/remove', ID=str(avId))
|
||||||
|
|
Loading…
Reference in a new issue