6
mirror of https://github.com/AllSpiceIO/cofactr-cogs.git synced 2025-04-10 22:50:08 +00:00

Change to not use manufacturer in query when search strategy is mpn_exact

This commit is contained in:
Jonathan Tran 2024-05-20 17:54:29 -04:00
parent 27efa7113b
commit e38799307b
No known key found for this signature in database

View File

@ -57,7 +57,7 @@ def fetch_price_for_part(
)
query = part_number
if manufacturer:
if search_strategy != "mpn_exact" and manufacturer:
query += f" {manufacturer}"
search_response = requests.get(