Skip to content

Commit

Permalink
fix delete url
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelljkotler committed May 23, 2024
1 parent 977a5a2 commit 1c9b212
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---------

4.1.2
~~~~~
* Fix DELETE URL for documents

4.1.1
~~~~~
* Refresh tokens on 429 response codes
Expand Down
2 changes: 1 addition & 1 deletion documentcloud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1c9b212

Please sign in to comment.