From afdaa49f19c44cbeae7319a54d3d36e639d5e1ae Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Sat, 20 Jul 2024 23:29:39 +0200 Subject: [PATCH] add_history_entry, use attributes instead of skuid --- src/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.py b/src/db.py index 7ad4d7d..0f7beb1 100644 --- a/src/db.py +++ b/src/db.py @@ -55,8 +55,8 @@ def add_history_entry(itemid, skuid, choice, attributes, image, price, currency, SELECT uuid FROM item WHERE itemid = %s - AND skuid = %s - """, (itemid, skuid)) + AND attributes = %s + """, (itemid, formatted_attributes)) uuid = cursor.fetchall()[0]