Added safty
This commit is contained in:
parent
3dcc985087
commit
4d0f7b57bd
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -129,7 +129,7 @@ def adduser():
|
||||||
c.execute("INSERT or IGNORE INTO users (username, balance) VALUES (?, 0)", [username])
|
c.execute("INSERT or IGNORE INTO users (username, balance) VALUES (?, 0)", [username])
|
||||||
conn.commit()
|
conn.commit()
|
||||||
socketio.emit("update", "update")
|
socketio.emit("update", "update")
|
||||||
c.execute(f"SELECT * FROM users WHERE username={username}")
|
c.execute(f"SELECT * FROM users WHERE username=?", [username])
|
||||||
user = c.fetchall()[0]
|
user = c.fetchall()[0]
|
||||||
db_log(f"Added user id: {user[0]} name: {user[2]}")
|
db_log(f"Added user id: {user[0]} name: {user[2]}")
|
||||||
return 'Added user <a href="/list">user and tag list</a>'
|
return 'Added user <a href="/list">user and tag list</a>'
|
||||||
|
|
Loading…
Reference in a new issue