Skip to content

Commit a79dcd2

Browse files
committed
Apply suggestion
1 parent 56e0a8e commit a79dcd2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backend/apps/owasp/models/project.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,7 @@ def nest_url(self) -> str:
169169
def last_health_metrics(self) -> ProjectHealthMetrics | None:
170170
"""Return last health metrics for the project."""
171171
return (
172-
ProjectHealthMetrics.objects.filter(project=self)
173-
.order_by(
174-
"-nest_created_at",
175-
)
176-
.first()
172+
ProjectHealthMetrics.objects.filter(project=self).order_by("-nest_created_at").first()
177173
)
178174

179175
@property

0 commit comments

Comments
 (0)