Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Renamed 'response' to 'existing_response' to avoid variable …
…re-declaring (#5383) # Description When checking collisions of responses to avoid duplicate responses given by the same user to the same question, the response argument is redeclared and the `response.user_id == response.user_id ` will always be satisfied, raising an exception. Closes #5357 **Type of change** - Bug fix (non-breaking change which fixes an issue) **How Has This Been Tested** Changes done locally, installed the local version and tested on top of our Argilla server with this piece of code (details were obfuscated): ``` for user in client.users: record_to_add.responses.add(rg.Response("label_name", label, user_id=user.id, status="submitted")) ```
- Loading branch information