Transaction log without time

This commit is contained in:
bton 2024-03-19 23:52:49 +01:00
parent e76e5beae7
commit dd9e3463c9
3 changed files with 7 additions and 8 deletions

View file

@ -8,7 +8,7 @@ from flask import current_app, g
def log(statement, user_id=None, before=None, after=None, change=None):
db = get_db()
c = db.cursor()
c.execute("INSERT INTO transaction_log (timestamp, type, user_id, before, after, change) VALUES (?, ?, ?, ?, ?, ?)", [datetime.now(), statement, user_id, before, after, change])
c.execute("INSERT INTO transaction_log (type, user_id, before, after, change) VALUES (?, ?, ?, ?, ?)", [ statement, user_id, before, after, change])
db.commit()
def add_user(after):