From 6ac3d26ba62544295606f70108a5cfe089ed1e85 Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Wed, 24 Apr 2024 22:28:26 +0200 Subject: [PATCH 1/2] Fix an error in the doc string of Client.searchChunked() --- src/icat/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icat/client.py b/src/icat/client.py index b18935d6..8c0cf2cf 100644 --- a/src/icat/client.py +++ b/src/icat/client.py @@ -564,7 +564,7 @@ def searchChunked(self, query, skip=0, count=None, chunksize=100): # This version works! query = Query(client, "Dataset", includes="1", order=["id"]) for ds in client.searchChunked(query): - if not ds.complete: + if ds.complete: continue ds.complete = True ds.update() From 9fd5cce61ce1394779bd293fa9c7f74773831d6f Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Wed, 24 Apr 2024 22:38:14 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGES.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 2941612e..0faa1c9a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,17 @@ Changelog ========= +dev (not yet released) +~~~~~~~~~~~~~~~~~~~~~~ + +Bug fixes and minor changes +--------------------------- + ++ `#152`_: Fix a documentation error + +.. _#152: https://github.com/icatproject/python-icat/pull/152 + + .. _changes-1_3_0: 1.3.0 (2024-03-21)