-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format: reformat codebase, fix ruff lint errors
- Loading branch information
Showing
51 changed files
with
424 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
class ApiConfig(AppConfig): | ||
name = 'badges' | ||
name = "badges" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
from django.urls import path | ||
|
||
from badges.badgeclients import TestBadgeClient | ||
from .views import BadgeDetailView, UpdateBadgeBearersView, BadgeRankingView | ||
|
||
from .views import BadgeDetailView, BadgeRankingView, UpdateBadgeBearersView | ||
|
||
global_urlpatterns = [ | ||
path('', BadgeRankingView.as_view(), name='badge-ranking'), | ||
path("", BadgeRankingView.as_view(), name="badge-ranking"), | ||
] | ||
|
||
urlpatterns = [ | ||
path('<slug:slug>/', BadgeDetailView.as_view(), name='badge-detail'), | ||
path("<slug:slug>/", BadgeDetailView.as_view(), name="badge-detail"), | ||
] | ||
|
||
admin_urlpatters = [ | ||
path( | ||
'badge/<slug:slug>/update_bearers/', | ||
UpdateBadgeBearersView.as_view(), | ||
name='update-badge-bearers'), | ||
path("badge/<slug:slug>/update_bearers/", UpdateBadgeBearersView.as_view(), name="update-badge-bearers"), | ||
] | ||
|
||
badgeclients_urlpatterns = [ | ||
path('test/', TestBadgeClient.as_view()), | ||
path("test/", TestBadgeClient.as_view()), | ||
] |
Oops, something went wrong.