Skip to content

The sort function in product_finder is not working #186

@kozasa

Description

@kozasa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions