Allow sending emails
This commit is contained in:
6
utils.py
Normal file
6
utils.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from tabulate import tabulate
|
||||
|
||||
def format_product_table(product_info):
|
||||
headers = ["Product Name", "Price", "Discount", "original price", "URL"]
|
||||
table_data = [[info["name"], info["price"], info["discount"], info["originalPrice"], info["url"]] for info in product_info]
|
||||
return tabulate(table_data, headers=headers, tablefmt="grid")
|
||||
Reference in New Issue
Block a user