Skip to content

Commit

Permalink
Type create_requirement_assessments method
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Sep 26, 2024
1 parent e7fbd80 commit 252ac29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,9 @@ def save(self, *args, **kwargs) -> None:
self.scores_definition = self.framework.scores_definition
super().save(*args, **kwargs)

def create_requirement_assessments(self, baseline: Self | None = None):
def create_requirement_assessments(
self, baseline: Self | None = None
) -> list["RequirementAssessment"]:
requirements = RequirementNode.objects.filter(framework=self.framework)
requirement_assessments = []
for requirement in requirements:
Expand Down

0 comments on commit 252ac29

Please sign in to comment.