Skip to content

Commit 17b6261

Browse files
committed
#99 delete unused arguments
1 parent 8a6c156 commit 17b6261

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

core/views/checklist_views.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@method_decorator(login_required, name='dispatch')
1010
class GetChecklistItemsView(JSONResponseMixin, View):
11-
def get(self, request, *args, **kwargs):
11+
def get(self, request):
1212
checklist_items = ChecklistItem.objects.filter(checklist__user=request.user)
1313

1414
checklist_items_json = [_get_checklist_item_in_json(item) for item in checklist_items]
@@ -18,7 +18,7 @@ def get(self, request, *args, **kwargs):
1818

1919
@method_decorator(login_required, name='dispatch')
2020
class GetChecklistItemsForTodayView(JSONResponseMixin, View):
21-
def get(self, request, *args, **kwargs):
21+
def get(self, request):
2222
current_matchday = Matchday.get_current()
2323
home_match_tomorrow = Match.objects.filter(
2424
user=request.user,
@@ -68,7 +68,7 @@ def get(self, request, *args, **kwargs):
6868

6969
@method_decorator(login_required, name='dispatch')
7070
class CreateChecklistItemView(JSONResponseMixin, View):
71-
def get(self, request, *args, **kwargs):
71+
def get(self, request):
7272
checklist, _ = Checklist.objects.get_or_create(user=request.user)
7373
new_checklist_item = ChecklistItem.objects.create(checklist=checklist, name='Neuer Eintrag')
7474

@@ -79,7 +79,7 @@ def get(self, request, *args, **kwargs):
7979

8080
@method_decorator(login_required, name='dispatch')
8181
class UpdateChecklistPriorityView(JSONResponseMixin, View):
82-
def post(self, request, *args, **kwargs):
82+
def post(self, request):
8383
checklist_priority = request.POST.get('checklist_priority')
8484

8585
priority = [int(x) for x in checklist_priority.split(',')]
@@ -93,7 +93,7 @@ def post(self, request, *args, **kwargs):
9393

9494
@method_decorator(login_required, name='dispatch')
9595
class UpdateChecklistItemNameView(JSONResponseMixin, View):
96-
def post(self, request, *args, **kwargs):
96+
def post(self, request):
9797
checklist_item_id = request.POST.get('checklist_item_id')
9898
checklist_item_name = request.POST.get('checklist_item_name')
9999

@@ -109,7 +109,7 @@ def post(self, request, *args, **kwargs):
109109

110110
@method_decorator(login_required, name='dispatch')
111111
class UpdateChecklistItemStatusView(JSONResponseMixin, View):
112-
def post(self, request, *args, **kwargs):
112+
def post(self, request):
113113
checklist_item_id = request.POST.get('checklist_item_id')
114114
checklist_item_checked = request.POST.get('checklist_item_checked')
115115

@@ -128,7 +128,7 @@ def post(self, request, *args, **kwargs):
128128

129129
@method_decorator(login_required, name='dispatch')
130130
class UpdateChecklistItemConditionView(JSONResponseMixin, View):
131-
def post(self, request, *args, **kwargs):
131+
def post(self, request):
132132
checklist_item_id = request.POST.get('checklist_item_id')
133133
checklist_item_matchdays = request.POST.get('checklist_item_matchdays')
134134
checklist_item_matchday_pattern = request.POST.get('checklist_item_matchday_pattern')
@@ -144,8 +144,11 @@ def post(self, request, *args, **kwargs):
144144

145145
return self.render_json_response({'success': False})
146146

147-
def _handle_checklist_item_update(self, checklist_item, checklist_item_everyday,
148-
checklist_item_home_match, checklist_item_matchday_pattern,
147+
def _handle_checklist_item_update(self,
148+
checklist_item,
149+
checklist_item_everyday,
150+
checklist_item_home_match,
151+
checklist_item_matchday_pattern,
149152
checklist_item_matchdays):
150153
if checklist_item_matchdays:
151154
self._update_checklist_item_condition(checklist_item, checklist_item_matchdays, None, False)
@@ -167,7 +170,7 @@ def _update_checklist_item_condition(checklist_item, checklist_item_matchdays, c
167170

168171
@method_decorator(login_required, name='dispatch')
169172
class DeleteChecklistItemView(JSONResponseMixin, View):
170-
def post(self, request, *args, **kwargs):
173+
def post(self, request):
171174
checklist_item_id = request.POST.get('checklist_item_id')
172175
checklist_item = ChecklistItem.objects.get(checklist__user=request.user, id=checklist_item_id)
173176
if checklist_item:

0 commit comments

Comments
 (0)