Skip to content

Commit 2c8899d

Browse files
authored
Merge pull request #58 from RedHatProductSecurity/add-purl-like-to-product-query
Add purl like to product query
2 parents 20e7b34 + a513964 commit 2c8899d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/trustshell/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ async def make_request_with_retry(
335335
"""Make async HTTP request with 401 retry logic"""
336336
try:
337337
response = await client.get(
338-
endpoint, params=query_params, headers=headers, timeout=300
338+
endpoint, params=query_params, headers=headers, timeout=2400
339339
)
340340
response.raise_for_status()
341341
return response

src/trustshell/products.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _get_roots(
222222
endpoint = ANALYSIS_ENDPOINT
223223

224224
# Use the paginated query function
225-
base_params = {"ancestors": ANCESTOR_COUNT, "q": f"{base_purl}@"}
225+
base_params = {"ancestors": ANCESTOR_COUNT, "q": f"purl~{base_purl}@"}
226226
ancestors = paginated_trustify_query(
227227
endpoint, base_params, auth_header, component_name=base_purl
228228
)

0 commit comments

Comments
 (0)