From b712136571590f9817ce48a30d187c892e39d401 Mon Sep 17 00:00:00 2001 From: Till Prochaska Date: Thu, 14 Dec 2023 11:32:13 +0100 Subject: [PATCH] Fix types --- alephclient/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alephclient/api.py b/alephclient/api.py index d8ec446..e11aa70 100644 --- a/alephclient/api.py +++ b/alephclient/api.py @@ -343,9 +343,9 @@ def _bulk_chunk( url = self._make_url(f"collections/{collection_id}/_bulk") params = {"entityset_id": entityset_id} if unsafe: - params['safe'] = not unsafe + params["safe"] = "false" if cleaned: - params['clean'] = not cleaned + params["clean"] = "false" try: response = self.session.post(url, json=chunk, params=params) response.raise_for_status()