BUG FIX : forgot to use the endpoint from the instance and also assign payload to param. Bug caught by the flake8 in the CI tests.

This commit is contained in:
Akash Mahanty 2022-01-24 23:35:48 +05:30
parent 06fc7855bf
commit 06095202fe

View File

@ -57,7 +57,7 @@ class WaybackMachineCDXServerAPI:
for i in range(total_pages):
payload["page"] = str(i)
url = full_url(endpoint, params)
url = full_url(self.endpoint, params=payload)
res = get_response(url, headers=headers)
self.last_api_request_url = url
@ -81,7 +81,7 @@ class WaybackMachineCDXServerAPI:
if resumeKey:
payload["resumeKey"] = resumeKey
url = full_url(endpoint, params)
url = full_url(self.endpoint, params=payload)
res = get_response(url, headers=headers)
self.last_api_request_url = url