From f5683265e66197f397a3522faabf8cfc0770d0be Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Sat, 25 Nov 2023 00:46:33 +0100 Subject: [PATCH] removed db.close() --- Website/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Website/__init__.py b/Website/__init__.py index 8ac049d..87ec39c 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -22,7 +22,6 @@ def log(type=None, userid=None, before=None, after=None): c = db.cursor() c.execute("INSERT or IGNORE INTO transaction_log (timestamp, userid, type, before, after) VALUES (?, ?, ?, ?, ?)", [datetime.now(), userid, type, before, after]) db.commit() - db.close() def create_app(test_config=None): app = Flask(__name__)