This commit is contained in:
Renaud Boyer 2020-12-06 22:00:01 +01:00
parent 7bac9e82b9
commit 43d9dbc1fc
1 changed files with 4 additions and 4 deletions

View File

@ -49,12 +49,12 @@ def alias_log(alias_id, page_id):
) )
total = base.count() total = base.count()
email_forwarded = ( email_forwarded = (
base.filter(EmailLog.is_reply == False) base.filter(EmailLog.is_reply.is_(False))
.filter(EmailLog.blocked == False) .filter(EmailLog.blocked.is_(False))
.count() .count()
) )
email_replied = base.filter(EmailLog.is_reply == True).count() email_replied = base.filter(EmailLog.is_reply.is_(True)).count()
email_blocked = base.filter(EmailLog.blocked == True).count() email_blocked = base.filter(EmailLog.blocked.is_(True)).count()
last_page = ( last_page = (
len(logs) < PAGE_LIMIT len(logs) < PAGE_LIMIT
) # lightweight pagination without counting all objects ) # lightweight pagination without counting all objects