Skip to content

Commit

Permalink
Merge pull request #64 from LeComptoirDesPharmacies/release/v1.9.3
Browse files Browse the repository at this point in the history
Release/v1.9.3
  • Loading branch information
AntoineDuComptoirDesPharmacies authored Mar 6, 2024
2 parents 893b152 + 7dcc4c7 commit 0469bc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion business/services/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ def update_or_create_product(product, can_create_product_from_scratch):


def __get_product_by_barcode(barcode):
if not barcode:
return None

api = get_search_product_api()

products = api.get_products(
_request_auths=[api.api_client.create_auth_settings("apiKeyAuth", get_api_key())],
barcodes_anyeq=barcode,
barcodes_anyeq=[barcode],
st_eq=['VALIDATED', 'WAITING_FOR_VALIDATION'],
p=0, pp=1
)
Expand Down

0 comments on commit 0469bc6

Please sign in to comment.