mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
improve daily report
This commit is contained in:
parent
a1fdbc0caa
commit
38e7a64f4f
1 changed files with 2 additions and 2 deletions
4
cron.py
4
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:
|
||||
|
|
Loading…
Reference in a new issue