Update version to v1.3.4 and adjust logging retrieval in product processing functions
This commit is contained in:
@@ -395,8 +395,6 @@ def search_product(search):
|
||||
page = 1
|
||||
total_products = 0 # Initialize the counter for total products
|
||||
|
||||
log = options.get("log_message", None)
|
||||
|
||||
while True:
|
||||
products = wcapi.get("products", params={"per_page": 100, "page": page, "search": search}).json()
|
||||
if not products:
|
||||
@@ -416,6 +414,7 @@ def process_all_products(options):
|
||||
|
||||
page = 1
|
||||
total_products = 0 # Initialize the counter for total products
|
||||
log = options.get("log_message", None)
|
||||
|
||||
while True:
|
||||
products = wcapi.get("products", params={"per_page": 100, "page": page}).json()
|
||||
|
||||
Reference in New Issue
Block a user