Switch to bootstrap5
Change-Id: Ie69c93f0495b16b687ae8d6fbbdca56cf64bab9d
diff --git a/testrail_bot/control/views.py b/testrail_bot/control/views.py
index 2c9f0b2..18b5663 100644
--- a/testrail_bot/control/views.py
+++ b/testrail_bot/control/views.py
@@ -54,12 +54,10 @@
def single_report(request, report_id):
report = models.TestRailReport.objects.get(pk=report_id)
data = report.path.read().decode("utf-8")
- if request.method == "POST" and request.is_ajax():
- return HttpResponse(
- json.dumps({"data": data, "finished": report.finished}),
- content_type="application/json")
return render(request, "control/report.html",
- {"report_id": report.id, "report": data})
+ {"report_id": report.id,
+ "report": data,
+ "finished": report.finished})
def submit_run(request, run_id):