doccano-client icon indicating copy to clipboard operation
doccano-client copied to clipboard

role names key mismatch - fix specified

Open kovidiament opened this issue 4 years ago • 0 comments

How to reproduce the behaviour

image image

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:

kovidiament avatar Jul 12 '21 22:07 kovidiament