From 657c500f24514e3fe2b7d2a7c650fda7ec49444b Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 13 Mar 2024 19:29:15 +0100 Subject: [PATCH] Ahhhhhhhhhhhhhhhh --- Website/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/db.py b/Website/db.py index fe51935..91a5665 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=user_id, before=before, after=after, change=change): +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])