mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
remove bool even if I like it
This commit is contained in:
@@ -110,7 +110,7 @@ class Domain(AdminObject):
|
||||
"""return true if the domain was created in the latest 24h"""
|
||||
now = timezone.now()
|
||||
delta = datetime.timedelta(days=1)
|
||||
return bool(self.creation + delta > now)
|
||||
return self.creation + delta > now
|
||||
|
||||
def awaiting_checks(self):
|
||||
"""return true if the domain has no valid MX records and was created
|
||||
|
||||
Reference in New Issue
Block a user