Skip to content

Commit c911d6d

Browse files
authored
Use GET instead of POST for flow exist (#1147)
1 parent 99a62f6 commit c911d6d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/progress.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Changelog
1010
~~~~~~
1111
* FIX#1030: ``pre-commit`` hooks now no longer should issue a warning.
1212
* FIX#1110: Make arguments to ``create_study`` and ``create_suite`` that are defined as optional by the OpenML XSD actually optional.
13+
* FIX#1147: ``openml.flow.flow_exists`` no longer requires an API key.
1314
* MAIN#1088: Do CI for Windows on Github Actions instead of Appveyor.
1415
* ADD#1103: Add a ``predictions`` property to OpenMLRun for easy accessibility of prediction data.
1516

openml/flows/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def flow_exists(name: str, external_version: str) -> Union[int, bool]:
253253
raise ValueError("Argument 'version' should be a non-empty string")
254254

255255
xml_response = openml._api_calls._perform_api_call(
256-
"flow/exists", "post", data={"name": name, "external_version": external_version},
256+
"flow/exists", "get", data={"name": name, "external_version": external_version},
257257
)
258258

259259
result_dict = xmltodict.parse(xml_response)

0 commit comments

Comments
 (0)