mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
improve daily report
This commit is contained in:
parent
a1fdbc0caa
commit
38e7a64f4f
4
cron.py
4
cron.py
@ -377,7 +377,7 @@ def all_bounce_report() -> str:
|
|||||||
.filter(Bounce.created_at > min_dt)
|
.filter(Bounce.created_at > min_dt)
|
||||||
.group_by(Bounce.email)
|
.group_by(Bounce.email)
|
||||||
# not return mailboxes that have too little bounces
|
# 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"))
|
.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():
|
for email, bounces in bounce_report():
|
||||||
report += f"{email}: {bounces} "
|
report += f"{email}: {bounces}\n"
|
||||||
|
|
||||||
report += f"""\n
|
report += f"""\n
|
||||||
# Alias creation report:
|
# Alias creation report:
|
||||||
|
Loading…
Reference in New Issue
Block a user