ruff rule FBT

This commit is contained in:
thomas girod
2024-06-27 14:57:40 +02:00
parent cfc19434d0
commit 171a1cb876
11 changed files with 26 additions and 26 deletions

View File

@ -1055,13 +1055,13 @@ class SithFile(models.Model):
param="1",
).save()
def apply_rights_recursively(self, only_folders=False):
def apply_rights_recursively(self, *, only_folders=False):
children = self.children.all()
if only_folders:
children = children.filter(is_folder=True)
for c in children:
c.copy_rights()
c.apply_rights_recursively(only_folders)
c.apply_rights_recursively(only_folders=only_folders)
def copy_rights(self):
"""Copy, if possible, the rights of the parent folder"""