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",