X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/52f39e99d1e133c07ee2f2b549a7720028bd2909..15f6ccf06354856b10422407037320b4e064d727:/forum/management/commands/send_email_alerts.py diff --git a/forum/management/commands/send_email_alerts.py b/forum/management/commands/send_email_alerts.py index 85b83fa..02e2df0 100644 --- a/forum/management/commands/send_email_alerts.py +++ b/forum/management/commands/send_email_alerts.py @@ -98,6 +98,9 @@ class Command(NoArgsCommand): new_member_count = new_members.count() + # The number of the flagged content for the day + flagged_count = Flag.objects.all().count() + if new_member_count >= SHOW_N_MORE_ACTIVE_NEW_MEMBERS: new_members = new_members[:SHOW_N_MORE_ACTIVE_NEW_MEMBERS] show_all_users = True