mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06: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
|
||||
|
||||
blacklist = executeHttpRequest('names/blacklist.json')
|
||||
if blacklist:
|
||||
blacklist = json.loads(blacklist)
|
||||
|
||||
def judgeName(name):
|
||||
if not name:
|
||||
return False
|
||||
|
@ -158,7 +162,8 @@ class RemoteAccountDB(AccountDB):
|
|||
return executeHttpRequest('names/append', ID=str(avId), Name=name)
|
||||
|
||||
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):
|
||||
return executeHttpRequest('names/remove', ID=str(avId))
|
||||
|
|
Loading…
Reference in a new issue