From 84d0014884f524fd77257848ff0f3a33c35f7788 Mon Sep 17 00:00:00 2001 From: Guillaume Latour Date: Thu, 5 Dec 2024 16:36:23 +0100 Subject: [PATCH] fix: remove / from delete query that was always returning 404 --- src/tomtom_api/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tomtom_api/client.py b/src/tomtom_api/client.py index 3e95476..1565ed6 100644 --- a/src/tomtom_api/client.py +++ b/src/tomtom_api/client.py @@ -422,7 +422,7 @@ def delete_job(self, job: Union[SubmittedTomtomJob, List[SubmittedTomtomJob]]): job_id = job if isinstance(job, int) else job.job_id - url = f"https://{self.base_url}/traffic/trafficstats/reports/{job_id}/?key={self.key}" + url = f"https://{self.base_url}/traffic/trafficstats/reports/{job_id}?key={self.key}" response = self.request("delete", url)