From 38e7a64f4fb0ff2ad8b62be7752bc8c8de717e1c Mon Sep 17 00:00:00 2001 From: Son Date: Sat, 6 Nov 2021 12:41:37 +0100 Subject: [PATCH] improve daily report --- cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.py b/cron.py index 97e76bf5..779a7c91 100644 --- a/cron.py +++ b/cron.py @@ -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: