From 1c9b21226c24c50a9f48d7486d00da2905544bf4 Mon Sep 17 00:00:00 2001 From: Mitchell Kotler Date: Thu, 23 May 2024 12:15:32 -0400 Subject: [PATCH] fix delete url --- docs/changelog.rst | 4 ++++ documentcloud/base.py | 2 +- setup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index e535dfb..a031cc2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,10 @@ Changelog --------- +4.1.2 +~~~~~ +* Fix DELETE URL for documents + 4.1.1 ~~~~~ * Refresh tokens on 429 response codes diff --git a/documentcloud/base.py b/documentcloud/base.py index 5a54cab..4566533 100644 --- a/documentcloud/base.py +++ b/documentcloud/base.py @@ -104,7 +104,7 @@ def get(self, id_, expand=None): def delete(self, id_): """Deletes a resource""" - self.client.delete(f"{self.api_path}/{get_id(id_)}") + self.client.delete(f"{self.api_path}/{get_id(id_)}/") def all(self, **params): return self.list(**params) diff --git a/setup.py b/setup.py index fb0ec43..d5c3767 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="python-documentcloud", - version="4.1.1", + version="4.1.2", description="A simple Python wrapper for the DocumentCloud API", author="Mitchell Kotler", author_email="mitch@muckrock.com",