]> OzVa Git service - critters-api/commitdiff
Fixed auth bug with dict
authorMax Value <greenwoodw50@gmail.com>
Mon, 9 Dec 2024 05:20:11 +0000 (05:20 +0000)
committerMax Value <greenwoodw50@gmail.com>
Mon, 9 Dec 2024 05:20:11 +0000 (05:20 +0000)
index.py

index 9e46087fdb6fb54efeb37ce331a71403836c41b7..7765fc3f6bb42663131be55ec204d76e8c3e1dd8 100755 (executable)
--- a/index.py
+++ b/index.py
@@ -40,7 +40,7 @@ def check_files(track_id):
 
 with open("../secrets.json", "r") as f:
        users = json.loads(f.read())
-users = {k: generate_password_hash(v) for k: v in users}
+users = {k: generate_password_hash(v) for (k, v) in users.items()}
 
 @auth.verify_password
 def verify_password(username, password):