X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/869a46f8bd98f6f71a5cdd0b8c722b1686fe449c..7cdc19bcfed965828015c882bed2cd82a7f442d7:/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 6f68f2c..4bc9951 100644 --- a/forum/management/commands/send_email_alerts.py +++ b/forum/management/commands/send_email_alerts.py @@ -105,6 +105,9 @@ class Command(NoArgsCommand): digest = DigestQuestionsIndex(from_date) + if (not new_member_count) and (not digest.count): + return + send_template_email(users, "notifications/digest.html", locals())