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

Change to an alternate way of passing type-checking

This commit is contained in:
Jonathan Tran 2024-05-14 16:00:50 -04:00
parent ef16ce9ad8
commit e4b3650085
No known key found for this signature in database

View File

@ -58,12 +58,12 @@ def fetch_price_for_part(part_number: str) -> dict[int, float]:
"X-API-KEY": api_key,
"X-CLIENT-ID": client_id,
},
params=(
("q", part_number),
("schema", "product-offers-v0"),
("external", True),
("limit", 1),
),
params={
"q": part_number,
"schema": "product-offers-v0",
"external": "true",
"limit": "1",
},
)
if search_response.status_code != 200: