mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
improve daily report
This commit is contained in:
parent
286717dae3
commit
78ad9fbcc5
1 changed files with 5 additions and 1 deletions
6
cron.py
6
cron.py
|
@ -345,7 +345,7 @@ def all_bounce_report() -> str:
|
|||
```
|
||||
|
||||
"""
|
||||
res = "\n\nBounce detail report:\n"
|
||||
res = ""
|
||||
min_dt = arrow.now().shift(days=-1)
|
||||
query = (
|
||||
Session.query(Bounce.email, func.count(Bounce.id).label("nb_bounce"))
|
||||
|
@ -478,6 +478,10 @@ Alias creation report:
|
|||
for email, nb_alias, date in alias_creation_report():
|
||||
report += f"{email}, {date}: {nb_alias}\n"
|
||||
|
||||
report += f"""
|
||||
-----
|
||||
Bounce detail report:
|
||||
"""
|
||||
report += all_bounce_report()
|
||||
|
||||
LOG.d("report email: %s", report)
|
||||
|
|
Loading…
Reference in a new issue