Fix APIClient get_all calls failing on API 2.20

This commit is contained in:
allegroai 2022-08-10 21:14:09 +03:00
parent 90854fa4a5
commit 55a1745ac5

View File

@ -410,7 +410,9 @@ def make_action(service, request_cls):
elif action in ["get_all", "get_all_ex"]:
# noinspection PyProtectedMember
dest = service.response_mapping[request_cls]._get_data_props().popitem()[0]
for dest in service.response_mapping[request_cls]._get_data_props().keys():
if dest != "scroll_id":
break
@wrap
def get(self, *args, **kwargs):