mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
improve bounce report
This commit is contained in:
parent
ef5670b1cf
commit
6468f7c8a5
1 changed files with 3 additions and 3 deletions
6
cron.py
6
cron.py
|
@ -344,7 +344,7 @@ def all_bounce_report() -> str:
|
|||
```
|
||||
|
||||
"""
|
||||
res = ""
|
||||
res = "\n\nBounce detail report:\n"
|
||||
min_dt = arrow.now().shift(days=-1)
|
||||
query = (
|
||||
Session.query(Bounce.email, func.count(Bounce.id).label("nb_bounce"))
|
||||
|
@ -472,11 +472,11 @@ nb_referred_user_upgrade: {stats_today.nb_referred_user_paid} - {increase_percen
|
|||
Alias creation report: <br>
|
||||
"""
|
||||
|
||||
html += all_bounce_report().replace("\n", "<br>")
|
||||
|
||||
for email, nb_alias, date in alias_creation_report():
|
||||
html += f"{email}, {date}: {nb_alias} <br>"
|
||||
|
||||
html += all_bounce_report().replace("\n", "<br>")
|
||||
|
||||
LOG.d("report email: %s", html)
|
||||
|
||||
send_email(
|
||||
|
|
Loading…
Reference in a new issue