Skip to content

Commit

Permalink
fix: fix ProductResource.update method
Browse files Browse the repository at this point in the history
fix a typo in the function name
  • Loading branch information
raphael0202 committed Apr 18, 2024
1 parent db35751 commit 29c40ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfoodfacts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def send_get_request(
return r.json()


def send_for_urlencoded_post_request(
def send_form_urlencoded_post_request(
url: str, body: Dict[str, Any], api_config: APIConfig
) -> requests.Response:
cookies = None
Expand Down Expand Up @@ -208,7 +208,7 @@ def update(self, body: Dict[str, Any]):
raise ValueError("missing code from body")

url = f"{self.base_url}/cgi/product_jqm2.pl"
return send_for_urlencoded_post_request(url, body, self.api_config)
return send_form_urlencoded_post_request(url, body, self.api_config)

def select_image(
self,
Expand Down

0 comments on commit 29c40ad

Please sign in to comment.