From 7abf9b90666c2400d095212fc66bd600e63134a5 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 23 Apr 2021 11:38:14 +0200 Subject: fix index out of range error + dprint fmt --- api/auth/signup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api/auth') diff --git a/api/auth/signup.py b/api/auth/signup.py index 571adb4..180322a 100644 --- a/api/auth/signup.py +++ b/api/auth/signup.py @@ -70,7 +70,10 @@ def index(): # write new user to database and commit cursor.execute( "insert into users values (?, ?, ?, NULL, NULL, ?, ?, \"[]\", FALSE, \"user\", \"{}\", ?) ", - (user_id, username, email, password_hash, registered, bcrypt.gensalt()) + ( + user_id, username, email, password_hash, registered, + bcrypt.gensalt() + ) ) connection.commit() -- cgit v1.2.3