From d6f48afeeddeca0285983b5eadbe88c39c24d825 Mon Sep 17 00:00:00 2001 From: TPV Date: Mon, 6 Jul 2026 14:32:12 -0700 Subject: [PATCH] removed if check from add_products_to_database --- src/monitor_utils/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monitor_utils/database.py b/src/monitor_utils/database.py index 724b082..66f07d6 100644 --- a/src/monitor_utils/database.py +++ b/src/monitor_utils/database.py @@ -92,7 +92,7 @@ async def add_products_to_database( now = datetime.now(timezone.utc) price_key = str(int(now.timestamp() * 1000)) for product, doc_id in zip(products, doc_ids): - document = convert_product_to_mongo(product, category_identifier) + document = convert_product_to_mongo(product) document["_id"] = doc_id old_price = existing_prices.get(doc_id) new_price = document.get("currentPrice")