added ridirekt to list after adding user
This commit is contained in:
parent
6d45a88aa1
commit
f45b1aa192
1 changed files with 7 additions and 1 deletions
8
main.py
8
main.py
|
@ -132,7 +132,13 @@ def adduser():
|
|||
c.execute(f"SELECT * FROM users WHERE username=?", [username])
|
||||
user = c.fetchall()[0]
|
||||
db_log.info(f"Added user id: {user[0]} name: {user[2]}")
|
||||
return 'Added user <a href="/list">user and tag list</a>'
|
||||
return """<html>
|
||||
<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">
|
||||
window.location="http://matekasse.server.c3h/list";
|
||||
</script>
|
||||
</html>
|
||||
"""
|
||||
else:
|
||||
return '<p>Error: 170</p> <a href="/list">user and tag list</a>'
|
||||
|
||||
|
|
Loading…
Reference in a new issue