forked from bton/matekasse
Ahhhhhhhhhhh
This commit is contained in:
parent
6f0edf0feb
commit
f6c06771dd
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ from datetime import datetime
|
|||
import click
|
||||
from flask import current_app, g
|
||||
|
||||
def log(statement, user_id, before, after, change):
|
||||
def log(statement, user_id=user_id, before=before, after=after, change=change):
|
||||
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])
|
||||
|
|
Loading…
Reference in a new issue