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

teams   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A Teams.fetch() 0 5 2
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