diff --git a/scraper/print_products.py b/scraper/print_products.py index 164ada7..a4fbb4e 100644 --- a/scraper/print_products.py +++ b/scraper/print_products.py @@ -26,7 +26,7 @@ def print_latest_datapoints_for_products(products: list[db.Product]): for products in grouped_products: product_infos = db.get_product_infos_from_products(products) - print(product_infos[0].product_name.upper()) + print(product_infos[0].product_name) for product_info in product_infos: print_latest_datapoint(product_info) @@ -56,7 +56,7 @@ def print_all_products() -> None: return for category in categories: - print(category.upper()) + print(category) products = db.get_products_by_categories([category]) @@ -89,7 +89,7 @@ def list_products_with_filters(names: list[str] | None, product_codes: list[str] sorted_categories = sorted(categories) for category in sorted_categories: - print(category.upper()) + print(category) products_with_category = [product for product in products_by_filters if product.category == category] @@ -100,7 +100,7 @@ def list_products_with_filters(names: list[str] | None, product_codes: list[str] def list_grouped_products(grouped_products: list[list[Product]]) -> None: for products in grouped_products: - print(f" > {products[0].name.upper()}") + print(f" > {products[0].name}") for product in products: is_active_marker = f"{CHECK_MARK} " if product.is_active else "" print(f" - {is_active_marker}{product.domain.upper()} - {product.product_code}") diff --git a/scraper/visualize.py b/scraper/visualize.py index b623a78..8dd6281 100644 --- a/scraper/visualize.py +++ b/scraper/visualize.py @@ -32,8 +32,8 @@ def visualize_data( if categories: for master_product in get_master_products_with_categories(master_products, categories, only_up_to_date): - product_name = master_product.product_name.upper() - category = master_product.category.upper() + product_name = master_product.product_name + category = master_product.category status_of_master_product = get_status_of_master_product(master_product) title = f"Price(s) of {product_name} - {category} - {status_of_master_product}" show_products(master_product.products, title) @@ -43,7 +43,7 @@ def visualize_data( if ids: for product in get_products_with_ids(master_products, ids, only_up_to_date): status_of_product = get_status_of_product(product) - product_name = product.product_name.upper() + product_name = product.product_name title = f"Price(s) of {product_name} - {status_of_product}" show_product(product, title) else: @@ -51,7 +51,7 @@ def visualize_data( if names: for master_product in get_master_products_with_names(master_products, names, only_up_to_date): - product_name = master_product.product_name.upper() + product_name = master_product.product_name status_of_master_product = get_status_of_master_product(master_product) title = f"Price(s) of {product_name} - {status_of_master_product}" show_products(master_product.products, title) @@ -100,9 +100,7 @@ def show_master_products(master_products: tuple[MasterProduct], only_up_to_date: continue status_of_master_product = get_status_of_master_product(master_product) - show_products( - master_product.products, f"Price(s) of {master_product.product_name.upper()} - {status_of_master_product}" - ) + show_products(master_product.products, f"Price(s) of {master_product.product_name} - {status_of_master_product}") def show_product(product: ProductInfo, title: str) -> None: