From 8c2fa3fc4d4bad7581839fb94c26957f021b67c6 Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Mon, 21 Oct 2024 18:34:48 +0200 Subject: [PATCH] Codefactor fix 5 (Break the code) --- backend/core/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/core/views.py b/backend/core/views.py index f27b36064..57e3457d0 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -985,7 +985,7 @@ def duplicate_into_folder( # cost=applied_control.cost, ) - applied_control = self.get_object() + """applied_control = self.get_object() data = request.data new_folder = Folder.objects.get(id=data["folder"]) duplicate_applied_control = duplicate_into_folder( @@ -996,7 +996,7 @@ def duplicate_into_folder( duplicate_related_objects( applied_control, duplicate_applied_control, new_folder, "evidences" ) - duplicate_applied_control.save() + duplicate_applied_control.save()""" return Response({"results": "applied control duplicated"})