improve daily report

This commit is contained in:
Son 2021-11-06 12:41:37 +01:00
parent a1fdbc0caa
commit 38e7a64f4f
1 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ def all_bounce_report() -> str:
.filter(Bounce.created_at > min_dt)
.group_by(Bounce.email)
# not return mailboxes that have too little bounces
.having(func.count(Bounce.id) > 5)
.having(func.count(Bounce.id) > 3)
.order_by(desc("nb_bounce"))
)
@ -493,7 +493,7 @@ nb_referred_user_upgrade: {stats_today.nb_referred_user_paid} - {increase_percen
"""
for email, bounces in bounce_report():
report += f"{email}: {bounces} "
report += f"{email}: {bounces}\n"
report += f"""\n
# Alias creation report: