Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from base import * |
||
2 | |||
3 | # ======================================================= |
||
4 | # Teams |
||
5 | # ======================================================= |
||
6 | class Teams(Resource): |
||
7 | def fetch(self, |
||
8 | only_with_users: bool = False, |
||
9 | only_mine: bool = False): |
||
10 | user = "me" if only_mine else "" |
||
11 | return self._get("/teams", with_users=only_with_users, user=user) |
||
12 |