removed db.close()
This commit is contained in:
parent
578a76902e
commit
f5683265e6
1 changed files with 0 additions and 1 deletions
|
@ -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__)
|
||||||
|
|
Loading…
Reference in a new issue