From 908b3cc1cab6278d25633a7549858fe94f84ef46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sandstr=C3=B6m?= Date: Wed, 6 Mar 2024 13:10:34 +0100 Subject: [PATCH] Bugfix/logs view not working (#167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Johan Alfredéen Co-authored-by: Hamza Imran Saeed --- apps/views.py | 4 ++-- templates/apps/logs.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/views.py b/apps/views.py index 127b4cc5..22cc2a86 100644 --- a/apps/views.py +++ b/apps/views.py @@ -55,13 +55,13 @@ def index(request, user, project): name="dispatch", ) class GetLogsView(View): - def get(self, request, user, project, ai_id): + def get(self, request, project, ai_id): template = "apps/logs.html" app = AppInstance.objects.get(pk=ai_id) project = Project.objects.get(slug=project) return render(request, template, locals()) - def post(self, request, user, project): + def post(self, request, project): body = request.POST.get("app", "") container = request.POST.get("container", "") app = AppInstance.objects.get(pk=body) diff --git a/templates/apps/logs.html b/templates/apps/logs.html index 0408fbbe..16908272 100644 --- a/templates/apps/logs.html +++ b/templates/apps/logs.html @@ -7,7 +7,7 @@ @@ -46,7 +46,7 @@

{{ app.name }} Logs

{{ app.name }} Logs
{