keepa icon indicating copy to clipboard operation
keepa copied to clipboard

The sort function in product_finder is not working

Open kozasa opened this issue 1 year ago • 0 comments

Hello, The sort function in product_finder is not working. I have written it in the source code below. Is there an error in how it's written? Thank you. Library version is 1.3.10

try:
    product_parms = {
        "productType": 0,
        "sort": [
            ["current_SALES", "desc"],
        ],
        "current_SALES_gte": 2000,
        "current_COUNT_REVIEWS_gte": 0,
        "current_NEW_gte": 0,
        "categories_include": [category_no],
        "packageWeight_gte": 0,
        "itemDimension_gte": 0,
        "itemLength_gte": 0,
        "itemWidth_gte": 0,
        "itemHeight_gte": 0,
        "itemWeight_gte": 0,
        "page": 0,
        "perPage": 50,
        "buyBoxIsPreorder": False,
    }
    products = self.keepa.product_finder(product_parms=product_parms, domain="JP", n_products=50)
    return products
except Exception as e:
    print(e)
    return None

kozasa avatar Dec 14 '24 14:12 kozasa