djbrown/hbscorez

View on GitHub
src/leagues/urls.py

Summary

Maintainability
B
5 hrs
Test Coverage
A
100%
Similar blocks of code found in 2 locations. Consider refactoring.
from django.urls import include, path
Similar blocks of code found in 2 locations. Consider refactoring.
 
Similar blocks of code found in 2 locations. Consider refactoring.
from leagues.views import calendar, detail, games, offenders, scorers, teams
Similar blocks of code found in 2 locations. Consider refactoring.
 
Similar blocks of code found in 2 locations. Consider refactoring.
app_name = "leagues"
Similar blocks of code found in 2 locations. Consider refactoring.
 
Similar blocks of code found in 2 locations. Consider refactoring.
urlpatterns = [
Similar blocks of code found in 2 locations. Consider refactoring.
path(
Similar blocks of code found in 2 locations. Consider refactoring.
"<int:bhv_id>/",
Similar blocks of code found in 2 locations. Consider refactoring.
include(
Similar blocks of code found in 2 locations. Consider refactoring.
[
Similar blocks of code found in 2 locations. Consider refactoring.
path("", detail, name="detail"),
Similar blocks of code found in 2 locations. Consider refactoring.
path("mannschaften/", teams, name="teams"),
Similar blocks of code found in 2 locations. Consider refactoring.
path("spiele/", games, name="games"),
Similar blocks of code found in 2 locations. Consider refactoring.
path("schuetzen/", scorers, name="scorers"),
Similar blocks of code found in 2 locations. Consider refactoring.
path("straffaellige/", offenders, name="offenders"),
Similar blocks of code found in 2 locations. Consider refactoring.
path("kalender/", calendar, name="calendar"),
Similar blocks of code found in 2 locations. Consider refactoring.
]
Similar blocks of code found in 2 locations. Consider refactoring.
),
Similar blocks of code found in 2 locations. Consider refactoring.
),
Similar blocks of code found in 2 locations. Consider refactoring.
]