diff --git a/docs/changelog.rst b/docs/changelog.rst index 8520b34..39939f0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,10 @@ Changelog --------- +4.8.1 +~~~~~ +* Fixes coordinates for annotations. Credit: @synapticlee + 4.7.0 ~~~~~ * Added burst-based sane rate limits to several endpoints. diff --git a/docs/conf.py b/docs/conf.py index e80e36c..faf0f84 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,9 +55,9 @@ # built documents. # # The short X.Y version. -version = "4.7" +version = "4.8" # The full version, including alpha/beta/rc tags. -release = "4.7.0" +release = "4.8.1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/documentcloud/annotations.py b/documentcloud/annotations.py index 01b1457..c02290d 100644 --- a/documentcloud/annotations.py +++ b/documentcloud/annotations.py @@ -79,7 +79,7 @@ def create( x2=None, y2=None, ): - coords = [x1, y2, x2, y2] + coords = [x1, y1, x2, y2] if not (all(c is None for c in coords) or all(c is not None for c in coords)): raise ValueError( "x1, y2, x2, y2 must either all be None or all be not None" diff --git a/setup.py b/setup.py index fb58793..e30b375 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="python-documentcloud", - version="4.7.0", + version="4.8.1", description="A simple Python wrapper for the DocumentCloud API", author="Mitchell Kotler", author_email="mitch@muckrock.com",