From 235b8524f851d4638970b4a6b02a3581f4c59eeb Mon Sep 17 00:00:00 2001 From: b3yond Date: Thu, 22 Mar 2018 11:32:43 +0100 Subject: [PATCH] db is persistent now --- db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/db.py b/db.py index d8e9a08..72217ad 100644 --- a/db.py +++ b/db.py @@ -110,6 +110,7 @@ class DB(object): # create user self.cur.execute("INSERT INTO user (email, passhash) VALUES(?, ?);", (json['email'], json['passhash'])) + self.conn.commit() return User(self, self.cur.lastrowid) def authenticate(self, email, password):