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:
parent
ef16ce9ad8
commit
e4b3650085
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user