Passed
Branch test (567fee)
by Alexis
01:21
created

teams.Teams.fetch()   A

Complexity

Conditions 2

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 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