mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
@@ -22,6 +22,6 @@ class MessageLimitMixin:
|
||||
@property
|
||||
def sent_messages_in_percent(self):
|
||||
"""Return number of sent messages as a percentage."""
|
||||
if self.message_limit is None:
|
||||
if not self.message_limit:
|
||||
return None
|
||||
return int(self.sent_messages / float(self.message_limit) * 100)
|
||||
|
||||
Reference in New Issue
Block a user