Skip to content

Commit 096b36a

Browse files
committed
fix: linter
1 parent bf04aad commit 096b36a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

user_expense_type/urls.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
),
1111
path(
1212
"<int:pk>/",
13-
UserExpenseTypeViewSet.as_view(
14-
{"get": "retrieve", "delete": "destroy", "put": "partial_update"}
15-
),
13+
UserExpenseTypeViewSet.as_view({"get": "retrieve", "delete": "destroy", "put": "partial_update"}),
1614
name="user_expense_type_detail",
1715
),
1816
]

user_expense_type/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def list(self, request):
4141
return Response({"error": "UserExpenseType not found"}, status=status.HTTP_404_NOT_FOUND)
4242
except Exception as e:
4343
return Response({"error": str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
44-
44+
4545
@cognito_authenticated
4646
def retrieve(self, request, pk=None):
4747
try:
@@ -80,7 +80,7 @@ def create(self, request):
8080
return Response({"error": str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
8181

8282
@cognito_authenticated
83-
def destroy(self, request, pk=None ):
83+
def destroy(self, request, pk=None):
8484
try:
8585
username = self.get_user_id_from_token(request)
8686
user_expense_type = UserExpenseType.objects.get(id=pk, username=username)

0 commit comments

Comments
 (0)