Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 6, 2024
1 parent a45504e commit f67088f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,11 +861,9 @@ def duplicate(self, request, pk):
field,
)

if (
duplicate_risk_assessment.folder
in [risk_assessment.folder]
+ [folder for folder in risk_assessment.folder.get_sub_folders()]
):
if duplicate_risk_assessment.folder in [risk_assessment.folder] + [
folder for folder in risk_assessment.folder.get_sub_folders()
]:
duplicate_scenario.owner.set(scenario.owner.all())

duplicate_scenario.save()
Expand Down

0 comments on commit f67088f

Please sign in to comment.