Fix typing
This commit is contained in:
parent
6fbce934d8
commit
c3de452ef6
|
@ -37,9 +37,9 @@ def TryGet():
|
|||
rows = c.fetchone()
|
||||
username = rows[0]
|
||||
|
||||
c.execute('SELECT actualCharacterId from characterList WHERE Name=? AND actualCharacterId IS NOT NULL',(username,))
|
||||
c.execute('SELECT ActualCharacterId from characterList WHERE Name=? AND ActualCharacterId IS NOT NULL',(username,))
|
||||
rows = c.fetchone()
|
||||
actualCharacterId = rows[0]
|
||||
ActualCharacterId = rows[0]
|
||||
|
||||
c.execute('SELECT CharacterId from characterList WHERE Name=?',(username,))
|
||||
rows = c.fetchall()
|
||||
|
@ -48,7 +48,7 @@ def TryGet():
|
|||
if row[0] != None and row[0] != "":
|
||||
characterIds.append(row[0])
|
||||
|
||||
result['actualCharacterId'] = actualCharacterId
|
||||
result['ActualCharacterId'] = ActualCharacterId
|
||||
result['characterIds'] = characterIds
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ result = {"status":SUCCESS}
|
|||
|
||||
def TrySave():
|
||||
CharacterIds = jsonData['characterIds']
|
||||
ActualCharacterId = jsonData['actualCharacterId']
|
||||
ActualCharacterId = jsonData['ActualCharacterId']
|
||||
authToken = jsonData['authToken']
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ ANSWER_INCORRECT = 5
|
|||
def DbConnect():
|
||||
return mariadb.connect(
|
||||
user="root",
|
||||
password="MYSQL_PASSWORD",
|
||||
password="ac63a6211f1f33656865d300bed172ec",
|
||||
host="127.0.0.1",
|
||||
port=3306,
|
||||
database="dreamtown"
|
||||
|
|
Loading…
Reference in New Issue
Block a user