fixed a small database issue with price drop tracking and added doc strings

This commit is contained in:
tpv committed 2026-07-03 16:39:43 -07:00
1 parent a61dbdfaa9
commit 99d660ee52
6 files changed
+172 -4

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ def get_mongo_client() -> AsyncIOMotorClient:
async def get_product_from_database(
collection: AsyncIOMotorCollection,
product_id: str,
) -> dict | None:
) -> dict:
return await collection.find_one({"_id": product_id})
@@ -41,7 +41,7 @@ async def add_products_to_database(
products: list[Product],
collection: AsyncIOMotorCollection,
category_identifier: str,
) -> None:
):
if not products:
return