Skip to content
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

Merged
merged 11 commits into from
Mar 29, 2024
Merged

Add Clubs #133

merged 11 commits into from
Mar 29, 2024

Conversation

djbrown
Copy link
Owner

@djbrown djbrown commented Mar 29, 2024

Change Types

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

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

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read CONTRIBUTING.md.
  • I have added tests to cover my changes.
  • My tests run automatically.
  • All new and existing tests passed.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codeclimate bot commented Mar 29, 2024

Code Climate has analyzed commit 319d879 and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3
Duplication 3

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()):
Copy link

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):
Copy link

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)

@djbrown djbrown merged commit 6fabff8 into master Mar 29, 2024
13 of 18 checks passed
@djbrown djbrown deleted the clubs branch March 29, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant