Skip to content

Commit

Permalink
fix: fix page_size parameter in facet.get_products
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Dec 1, 2023
1 parent b08b9d0 commit 9d99e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfoodfacts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_products(
"""
facet = Facet.from_str_or_enum(facet_name)
facet_singular = facet.name.replace("_", "-")
params = {"page": page, page_size: page_size}
params = {"page": page, "page_size": page_size}
if fields is not None:
params["fields"] = ",".join(fields)

Expand Down

0 comments on commit 9d99e6c

Please sign in to comment.