From f6c06771dd5ef05dbc897b310c294c1e4f465247 Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 13 Mar 2024 19:27:45 +0100 Subject: [PATCH] Ahhhhhhhhhhh --- Website/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/db.py b/Website/db.py index 47f440d..fe51935 100644 --- a/Website/db.py +++ b/Website/db.py @@ -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])