simplify function Alternative.dns_dmarc_report_needed

Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
This commit is contained in:
Jumper78
2025-02-25 15:33:30 +01:00
committed by GitHub
parent ced2763035
commit 8e18fe03a6

View File

@@ -385,6 +385,7 @@ class Alternative(Base):
@cached_property
def dns_dmarc_report_needed(self):
return self.name != app.config['DOMAIN']
""" return true if DMARC report record is needed """
domain = app.config['DOMAIN']
if self.name != domain: