This commit is contained in:
2000-Trek 2023-06-23 19:33:26 +02:00
parent d074506922
commit 6d45a88aa1
2 changed files with 2 additions and 1 deletions

View file

@ -131,7 +131,7 @@ def adduser():
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.info(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>'
else: else:
return '<p>Error: 170</p> <a href="/list">user and tag list</a>' return '<p>Error: 170</p> <a href="/list">user and tag list</a>'

View file

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <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"> <script type="text/javascript" charset="utf-8">
var socket = io(); var socket = io();
var user = {{ user }} var user = {{ user }}