Conditions | 1 |
Total Lines | 5 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from .base import Resource, UserRoles |
||
8 | def fetch(self, |
||
9 | with_invited: bool = False, |
||
10 | with_roles: list = (UserRoles.ADMIN, UserRoles.AGENT, UserRoles.COLLABORATOR)): |
||
11 | roles = ",".join([role.value[0] for role in with_roles]) |
||
12 | return self._get("/users", with_invited=with_invited, with_roles=roles, type="user") |
||
13 | |||
62 |