We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e0a8e commit a79dcd2Copy full SHA for a79dcd2
backend/apps/owasp/models/project.py
@@ -169,11 +169,7 @@ def nest_url(self) -> str:
169
def last_health_metrics(self) -> ProjectHealthMetrics | None:
170
"""Return last health metrics for the project."""
171
return (
172
- ProjectHealthMetrics.objects.filter(project=self)
173
- .order_by(
174
- "-nest_created_at",
175
- )
176
- .first()
+ ProjectHealthMetrics.objects.filter(project=self).order_by("-nest_created_at").first()
177
)
178
179
@property
0 commit comments