Skip to content

Commit

Permalink
Codefactor fix 5 (Break the code)
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Oct 21, 2024
1 parent 5d1eb96 commit 8c2fa3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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"})

Expand Down

0 comments on commit 8c2fa3f

Please sign in to comment.