Skip to content

Commit

Permalink
💎stylings for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
PitButtchereit committed May 23, 2024
1 parent d48038d commit feb2cb7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tracex_project/tracex/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class TracexLandingPage(TemplateView):

template_name = "landing_page.html"

def get(self, _request, *args, **kwargs):
def get(self, _request, *_args, **_kwargs):
"""Handle GET requests by initializing a form for API key entry and adding it to the context."""
context = self.get_context_data(**kwargs)
context = self.get_context_data(**_kwargs)
context['form'] = ApiKeyForm()

return self.render_to_response(context)
Expand All @@ -40,11 +40,11 @@ def post(self, request):
os.environ['OPENAI_API_KEY'] = api_key

return redirect('landing_page')
else:
context = self.get_context_data()
context['form'] = form

return render(request, self.template_name, context)
context = self.get_context_data()
context['form'] = form

return render(request, self.template_name, context)

def get_context_data(self, **kwargs):
"""Return context data and adds a flag indicating whether an API key is set."""
Expand Down Expand Up @@ -77,7 +77,7 @@ def get(self, request, *args, **kwargs):
class DownloadXesView(View):
"""View for the downloading of XES file(s)."""

def post(self, request, *args, **kwargs):
def post(self, request, *_args, **_kwargs):
"""
Process a POST request to download specified trace types as XES files.
Expand Down

0 comments on commit feb2cb7

Please sign in to comment.