-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Clubs #133
Conversation
|
Code Climate has analyzed commit 319d879 and detected 6 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 32.9% (80% is the threshold). This pull request will bring the total coverage in the repository to 47.9% (-0.8% change). View more on Code Climate. |
@@ -30,10 +32,10 @@ def build_source_url(league_bhv_id, team_bhv_id): | |||
return f'{settings.ROOT_SOURCE_URL}Spielbetrieb/index.php?orgGrpID=1&score={league_bhv_id}&teamID={team_bhv_id}' | |||
|
|||
@staticmethod | |||
def create_or_update_team(name, short_name, league, bhv_id, logger: logging.Logger = logging.getLogger()): | |||
def create_or_update_team(name, short_name, league, club, bhv_id, logger: logging.Logger = logging.getLogger()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function create_or_update_team
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
import_club(association, name, bhv_id, options) | ||
|
||
|
||
def import_club(association: Association, name: str, bhv_id, options): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cyclomatic complexity is too high in function import_club. (6)
Change Types
Description
With this new Feature you get an overview for all Teams of a specific Club.
Also you can easlily navigate from one Team to others of the same Club.
Checklist