removed db.close()

This commit is contained in:
2000-Trek 2023-11-25 00:46:33 +01:00
parent 578a76902e
commit f5683265e6

View file

@ -22,7 +22,6 @@ def log(type=None, userid=None, before=None, after=None):
c = db.cursor() c = db.cursor()
c.execute("INSERT or IGNORE INTO transaction_log (timestamp, userid, type, before, after) VALUES (?, ?, ?, ?, ?)", [datetime.now(), userid, type, before, after]) c.execute("INSERT or IGNORE INTO transaction_log (timestamp, userid, type, before, after) VALUES (?, ?, ?, ?, ?)", [datetime.now(), userid, type, before, after])
db.commit() db.commit()
db.close()
def create_app(test_config=None): def create_app(test_config=None):
app = Flask(__name__) app = Flask(__name__)