removed if check from add_products_to_database
This commit is contained in:
1 parent
9e8ab938c7
commit
d6f48afeed
1 file changed
+1
-1
@@ -92,7 +92,7 @@ async def add_products_to_database(
|
|||||||
now = datetime.now(timezone.utc)
|
now = datetime.now(timezone.utc)
|
||||||
price_key = str(int(now.timestamp() * 1000))
|
price_key = str(int(now.timestamp() * 1000))
|
||||||
for product, doc_id in zip(products, doc_ids):
|
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
|
document["_id"] = doc_id
|
||||||
old_price = existing_prices.get(doc_id)
|
old_price = existing_prices.get(doc_id)
|
||||||
new_price = document.get("currentPrice")
|
new_price = document.get("currentPrice")
|
||||||
|
|||||||
Reference in new issue
Block a user