Skip to content

Commit

Permalink
fix: fix call to update_product
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Apr 16, 2023
1 parent bbb869b commit 16c6453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions robotoff/off.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def update_product(
auth: Optional[OFFAuthentication] = None,
timeout: Optional[int] = 15,
):
base_url = settings.BaseURLProvider.api(server_type)
base_url = settings.BaseURLProvider.world(server_type)
url = f"{base_url}/cgi/product_jqm2.pl"

comment = params.get("comment")
Expand All @@ -411,9 +411,9 @@ def update_product(
raise ValueError(
"a password or a session cookie is required to update a product"
)
r = http_session.get(
r = http_session.post(
url,
params=params,
data=params,
auth=settings._off_request_auth,
cookies=cookies,
timeout=timeout,
Expand Down

0 comments on commit 16c6453

Please sign in to comment.