doccano-client
doccano-client copied to clipboard
role names key mismatch - fix specified
How to reproduce the behaviour

The key in code should be "name" not "rolename". mismatched.
this is me debugging post_members not working.
Changed the line locally for myself to role = list(filter(lambda role_info: role_info["name"] == rolename, res_roles))
and now works. Your Environment
- Operating System:
- Python Version:
- Package Version: