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]