mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Request evidence list with explicit paging parameters 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0378166263
commit
f54b420ae1
1 changed files with 4 additions and 1 deletions
|
|
@ -12,6 +12,8 @@ from utils.logger import setup_logger
|
|||
|
||||
logger = setup_logger()
|
||||
|
||||
_EVIDENCE_PAGE_SIZE = 100
|
||||
|
||||
|
||||
class DownloadedFile(NamedTuple):
|
||||
file_path: str
|
||||
|
|
@ -178,8 +180,9 @@ class PashubClient:
|
|||
|
||||
def _get_evidence_list(self, job_id: str) -> List[EvidenceFileData]:
|
||||
url = f"{self.base}/jobs/{job_id}/evidence"
|
||||
params = {"pageIndex": 0, "pageSize": _EVIDENCE_PAGE_SIZE}
|
||||
|
||||
r = self.session.get(url)
|
||||
r = self.session.get(url, params=params)
|
||||
if r.status_code == 401:
|
||||
raise UnauthorizedError("Token expired or invalid")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue