Closed khoroshevskyi closed 5 months ago
While I try to retrieve one result from one record, I got an error:
Input:
retrieve_one(record_identifier="id1", result_identifier=["description"])
Error:
TypeError: unhashable type: 'list'
We can clean this code by returning this value:
return_result = {key: value for key, value in result[0].items() if key in list(result_identifier)}
It can't take a list with a single entity
This is now fixed and I added a test to catch any future regressions.
While I try to retrieve one result from one record, I got an error:
Input:
Error:
We can clean this code by returning this value: