mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
compute and include nb_total_bounced_last_24h in email report
This commit is contained in:
parent
34564f6fa4
commit
7bfdb821af
1 changed files with 2 additions and 0 deletions
2
cron.py
2
cron.py
|
@ -257,6 +257,7 @@ def compute_metric2() -> Metric2:
|
|||
nb_bounced_last_24h=EmailLog.filter(EmailLog.created_at > _24h_ago)
|
||||
.filter_by(bounced=True)
|
||||
.count(),
|
||||
nb_total_bounced_last_24h=Bounce.filter(Bounce.created_at > _24h_ago).count(),
|
||||
nb_reply_last_24h=EmailLog.filter(EmailLog.created_at > _24h_ago)
|
||||
.filter_by(is_reply=True)
|
||||
.count(),
|
||||
|
@ -408,6 +409,7 @@ nb_forward_last_24h: {stats_today.nb_forward_last_24h} - {increase_percent(stats
|
|||
nb_reply_last_24h: {stats_today.nb_reply_last_24h} - {increase_percent(stats_yesterday.nb_reply_last_24h, stats_today.nb_reply_last_24h)} <br>
|
||||
nb_block_last_24h: {stats_today.nb_block_last_24h} - {increase_percent(stats_yesterday.nb_block_last_24h, stats_today.nb_block_last_24h)} <br>
|
||||
nb_bounced_last_24h: {stats_today.nb_bounced_last_24h} - {increase_percent(stats_yesterday.nb_bounced_last_24h, stats_today.nb_bounced_last_24h)} <br>
|
||||
nb_total_bounced_last_24h: {stats_today.nb_total_bounced_last_24h} - {increase_percent(stats_yesterday.nb_total_bounced_last_24h, stats_today.nb_total_bounced_last_24h)} <br>
|
||||
|
||||
nb_custom_domain: {stats_today.nb_verified_custom_domain} - {increase_percent(stats_yesterday.nb_verified_custom_domain, stats_today.nb_verified_custom_domain)} <br>
|
||||
nb_app: {stats_today.nb_app} - {increase_percent(stats_yesterday.nb_app, stats_today.nb_app)} <br>
|
||||
|
|
Loading…
Reference in a new issue