Final better listuser

This commit is contained in:
Tracker-Friendly 2024-04-02 11:21:03 +01:00
parent 43b7bcebff
commit 95d2da79ab
1 changed files with 1 additions and 1 deletions

2
main
View File

@ -512,7 +512,7 @@ async def listusers():
if request.method == "POST": if request.method == "POST":
data = await request.get_json() data = await request.get_json()
masterkey = data["masterkey"] masterkey = data["masterkey"]
if masterkey == SECRETKEY: if masterkey == SECRET_KEY:
conn = get_db_connection() conn = get_db_connection()
users = conn.execute("SELECT * FROM users").fetchall() users = conn.execute("SELECT * FROM users").fetchall()
conn.close() conn.close()