Fix projects.get_all_ex with active_users filtering did not work if the project id was passed as a string and not list

This commit is contained in:
allegroai 2022-11-29 17:27:54 +02:00
parent 53c9b5525e
commit 3451ff441f

View File

@ -102,6 +102,8 @@ def get_all_ex(call: APICall, company_id: str, request: ProjectsGetRequest):
conform_tag_fields(call, data) conform_tag_fields(call, data)
allow_public = not request.non_public allow_public = not request.non_public
requested_ids = data.get("id") requested_ids = data.get("id")
if isinstance(requested_ids, str):
requested_ids = [requested_ids]
_adjust_search_parameters( _adjust_search_parameters(
data, shallow_search=request.shallow_search, data, shallow_search=request.shallow_search,
) )