Skip to content

search_resource return type #25

Open
@mathiear

Description

@mathiear

Hi, could you explain why you change the type of the search_resource function ?

 if len(result) == 1:
return result[0]

I can always do a workaround by testing the type before using it, but I don't understand the logic - I'd prefer a function that returns a list of one element.

Regards,
Arnaud

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions