typo
This commit is contained in:
parent
d074506922
commit
6d45a88aa1
2 changed files with 2 additions and 1 deletions
2
main.py
2
main.py
|
@ -131,7 +131,7 @@ def adduser():
|
|||
socketio.emit("update", "update")
|
||||
c.execute(f"SELECT * FROM users WHERE username=?", [username])
|
||||
user = c.fetchall()[0]
|
||||
db_log(f"Added user id: {user[0]} name: {user[2]}")
|
||||
db_log.info(f"Added user id: {user[0]} name: {user[2]}")
|
||||
return 'Added user <a href="/list">user and tag list</a>'
|
||||
else:
|
||||
return '<p>Error: 170</p> <a href="/list">user and tag list</a>'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var socket = io();
|
||||
var user = {{ user }}
|
||||
|
|
Loading…
Reference in a new issue