From c0193337bb5519a772d943680406158f2ba82439 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 8 Nov 2023 20:45:37 +1100 Subject: [PATCH] fix: Typo in save data --- db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index 7d9311c..5b2cdb7 100644 --- a/db.py +++ b/db.py @@ -109,12 +109,12 @@ def get_website_data(domain): return "" return data[0][2] -def update_website_data(domain): +def update_website_data(domain,data): connection = mysql.connector.connect(**dbargs) cursor = connection.cursor() cursor.execute(""" UPDATE site SET data = %s WHERE domain = %s - """, (domain, domain)) + """, (data, domain)) connection.commit() cursor.close() connection.close() \ No newline at end of file