We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb49ecd commit 7056229Copy full SHA for 7056229
1 file changed
dojo/models.py
@@ -3146,6 +3146,11 @@ def get_sla_configuration(self):
3146
return self.test.engagement.product.sla_configuration
3147
3148
def get_sla_period(self):
3149
+ # Determine which method to use to calculate the SLA
3150
+ from dojo.utils import get_custom_method # noqa: PLC0415 circular import
3151
+ if method := get_custom_method("FINDING_SLA_EXPIRATION_DATE"):
3152
+ return method(self)
3153
+ # Run the default method
3154
sla_configuration = self.get_sla_configuration()
3155
sla_period = getattr(sla_configuration, self.severity.lower(), None)
3156
enforce_period = getattr(sla_configuration, str("enforce_" + self.severity.lower()), None)
0 commit comments